-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
in the rust docs https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.filter_map
it says why is filter_map not equal to filter().map()
this makes no sense
it should ask
why is filter_map not equal to map().filter().
also would be nice to explain that filter_map is is basically map().filter(is_some).map(unwrap) might make it easier to grasp.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.