You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following sentence is used to describe the take() function:
"take(n) will get the first n items out of an iterator, and return them as a list."
This is a bit confusing; most programmers would think of Rust's arrays when they hear the term "list", but this conflicts with the key point that should be made here, which is that take() takes an iterator and returns another iterator as a result.
The text was updated successfully, but these errors were encountered:
In the iterator adapters section of the Rust Guide:
http://doc.rust-lang.org/0.12.0/guide.html#iterator-adapters
The following sentence is used to describe the take() function:
"take(n) will get the first n items out of an iterator, and return them as a list."
This is a bit confusing; most programmers would think of Rust's arrays when they hear the term "list", but this conflicts with the key point that should be made here, which is that take() takes an iterator and returns another iterator as a result.
The text was updated successfully, but these errors were encountered: