Skip to content
FutureBlitz

    Install

    Import std.collections.immutable

    ImmutableMap

    std.collections.immutable

    extend

    Extend ImmutableMap<K, V> Implements Equatable

    Compares ImmutableMaps with == and !=, where their values can be compared.

    std/collections/immutable.fb, line 693

    • Operator ==(a: ImmutableMap<K, V>, b: ImmutableMap<K, V>): Bool operator #

      Whether the two have the same keys, each with an equal value.

    extend

    Extend ImmutableMap<K, V> Implements Hashable

    Hashes an ImmutableMap, where its keys and values can be hashed, so it can be a Map's key or a Set's value.

    std/collections/immutable.fb, line 710

    • Public Method Hash(): UInt64 method #

      A hash of its entries, whatever their order, which ImmutableMaps that are equal share.

    extend

    Extend ImmutableMap<K, V> Implements Printable

    Shows an ImmutableMap in a string, as its ToString writes it.

    std/collections/immutable.fb, line 725

    • Public Method ToString(): String method #

      Its entries, in its order, as a Map shows them: "{a: 1, b: 2}".

    Report an issue with this page or with FutureBlitz on GitHub.