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

    Interface ImmutableHashDictionary<K, V>

    Immutable view of the HashDictionary.

    interface ImmutableHashDictionary<K extends OpaqueHash, V> {
        get size(): number;
        "[iterator]"(): Iterator<[K, V], any, any>;
        get(key: K): V | undefined;
        has(key: K): boolean;
        keys(): Generator<K>;
        toSortedArray(compare: Comparator<K>): V[];
        values(): Generator<V>;
    }

    Type Parameters

    Hierarchy

    • Iterable<[K, V]>
      • ImmutableHashDictionary

    Implemented by

    Index

    Accessors

    Methods

    • Returns Iterator<[K, V], any, any>