Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmir17 committed Jul 22, 2024
2 parents 924ec6a + bcfafbe commit 36e7bd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ Here are a few reasons why the Map struct is needed:

From a user's perspective, you don't need to worry about the Map struct directly. The Rust standard library provides a clean and ergonomic interface for working with iterators, and the existence of the Map struct is an implementation detail that allows the iterator infrastructure to function correctly and efficiently.

When you call `.map(closure)` on an iterator, you're creating a new iterator of type `Map<OriginalIterator, ClosureType>`, but you can treat it like any other iterator and continue chaining other adapter methods or consuming the iterator as needed.
When you call `.map(closure)` on an iterator, you're creating a new iterator of type `Map<OriginalIterator, ClosureType>`, but you can treat it like any other iterator and continue chaining other adapter methods or consuming the iterator as needed.

0 comments on commit 36e7bd8

Please sign in to comment.