mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-07-07 11:37:13 -06:00
finished 13.3
This commit is contained in:
@ -201,4 +201,12 @@ The original implementation of minigrep verses using iterators.
|
||||
|
||||
Most Rust programmers prefer to use the iterator style.
|
||||
|
||||
It is a bit tougher to get the hand of at first, once you get the feel for the various
|
||||
It is a bit tougher to get the hand of at first, once you get the feel for the various iterator adaptor and what they do.
|
||||
|
||||
Iterators can be easier to understand.
|
||||
|
||||
Instead of fiddling with various bits of looping and building new vectors, the code focuses on high-level objective of the loop.
|
||||
|
||||
This abraction takes away some of the commonplace code so it is easier to see the concepts that are unique to this code, such as the filtering condition each element in the iteraor must pass.
|
||||
|
||||
You may think that the low level low will be but lets talk about performance [here](./The%20preformance%20Closures%20and%20Iterators.md).
|
Reference in New Issue
Block a user