diff --git a/Improving The IO Project.md b/Improving The IO Project.md index a2b09cb..95e1393 100644 --- a/Improving The IO Project.md +++ b/Improving The IO Project.md @@ -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 \ No newline at end of file +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). \ No newline at end of file diff --git a/Iterators and Closures.md b/Iterators and Closures.md index c9d4208..e92a203 100644 --- a/Iterators and Closures.md +++ b/Iterators and Closures.md @@ -13,7 +13,7 @@ It will cover: - [*Closures*](./Closures.md) - a function-like construct you can store in a variable - [*Iterators*](./Iterators.md) - a way of processing a series of elements - How to use colsure and iterators to [improve the I/O project (minigrep)](./Improving%20The%20IO%20Project.md) -- The preformance of closures and iterators (Spoiler alert: they are faster than you might think!) +- [The preformance of closures and iterators](./The%20preformance%20Closures%20and%20Iterators.md) (Spoiler alert: they are faster than you might think!) We have already covered some other Rust freatures, such as pattern matchin and enums, that are also influenced by the functional style. diff --git a/The preformance Closures and Iterators.md b/The preformance Closures and Iterators.md new file mode 100644 index 0000000..e69de29