Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the documentation of
filter()
and filter_map()
.
I believe the documentation is currently a little misleading. For example, in the docs for `filter()`: > If the closure returns `false`, it will try again, and call the closure on > the next element, seeing if it passes the test. This kind of implies that if the closure returns true then we *don't* "try again" and no further elements are considered. In actuality that's not the case, every element is tried regardless of what happened with the previous element. This change tries to clarify that by removing the uses of "try again" altogether.
- Loading branch information