Skip to content

Implement fold and reduce methods for tables #20

Description

@pathscale

Right now it's impossible to iterate over the records and collect some data out of them as iter_with takes Fn as a function, so no mutations. Replacing Fn with FnMut might not be the best solution as in some cases the function shall not mutate anything. That's why we should consider providing fold and reduce methods.

As for now it's possible to workaround the limitation via Cell.


Migrated from pathscale/wt-dead#118. Originally opened by @YohDeadfall on 2025-11-03T22:09:22Z.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or requestpost-1.0Valid work that does not gate the 1.0.0 release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions