Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Class MultiMap<TKeys, TValue>

    A multi-key map, implemented as nested maps.

    Nested maps are created lazily and never removed.

    Note that the keys which are not primitive values (string | number | Symbol) most likely need a function that will convert the key into some primitive representation, otherwise the map will compare only references!

    Type Parameters

    • TKeys extends readonly unknown[]
    • TValue
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    data: NestedMaps<TKeys, TValue>

    Methods

    • Remove the entry under inKeys.

      NOTE: this function does not remove empty maps.

      Returns true if the value was removed or false otherwise.

      Parameters

      Returns boolean