finished 13.3

This commit is contained in:
2025-02-24 16:02:55 -07:00
parent ba2884744b
commit d961dd4ee9
3 changed files with 10 additions and 2 deletions

View File

@ -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).