mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-28 17:55:41 +02:00
Update iterator.md (#244)
* Update iterator.md Adding a Speaker Note emphasizing that all most all functional programming toolbox over collections can be found in the `Iterator` documentation. * Wordsmithing Co-authored-by: Andrew Walbran <qwandor@google.com>
This commit is contained in:
parent
6b75f9e69c
commit
10bd1616cb
@ -29,7 +29,11 @@ fn main() {
|
||||
|
||||
<details>
|
||||
|
||||
`IntoIterator` is the trait that makes for loops work. It is implemented by collection types such as
|
||||
`Vec<T>` and references to them such as `&Vec<T>` and `&[T]`. Ranges also implement it.
|
||||
* `IntoIterator` is the trait that makes for loops work. It is implemented by collection types such as
|
||||
`Vec<T>` and references to them such as `&Vec<T>` and `&[T]`. Ranges also implement it.
|
||||
* The `Iterator` trait implements many common functional programming operations over collections
|
||||
(e.g. `map`, `filter`, `reduce`, etc). This is the trait where you can find all the documentation
|
||||
about them. In Rust these functions should produce the code as efficient as equivalent imperative
|
||||
implementations.
|
||||
|
||||
</details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user