Skip to content

[easy] iterator documentation improvement. #39294

Closed
@iqualfragile

Description

@iqualfragile

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

No one assigned

    Labels

    A-docsArea: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions