There's no need to use a Vec as you never add or remove items from the list. A plain array will suffice. As mentioned in the comments, Iterator::sum already ...
確定! 回上一頁