Skip to content

[Feature Request] add update for Map and hashmap #1965

@FlyCloudC

Description

@FlyCloudC
pub fn update[K, V](self : T[K, V], key: K, f : (V?) -> V)

Like get_or_init, saves one hash computation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions