Skip to content

The reduce method should document the order of the closure arguments #88927

Closed
@lefth

Description

@lefth

reduce takes a closure argument, but does not explain the order of its arguments. The type signature does not help clarify the order as it would for fold. Also note that fold and try_fold do document the closure.

See: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.reduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions