As of 1.0, for loops work with values of types with the Iterator trait. The book describes this technique in chapter 3.5 and chapter 13.2.
確定! 回上一頁