Skip to content
FutureBlitz

    Install

    Import std.collections.immutable

    ImmutableArray

    std.collections.immutable

    extend

    Extend ImmutableArray<T> Implements Equatable

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

    std/collections/immutable.fb, line 282

    • Operator ==(a: ImmutableArray<T>, b: ImmutableArray<T>): Bool operator #

      Whether the two have equal values in the same order.

    extend

    Extend ImmutableArray<T> Implements Hashable

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

    std/collections/immutable.fb, line 299

    • Public Method Hash(): UInt64 method #

      A hash of its values in order, which ImmutableArrays that are equal share.

    extend

    Extend ImmutableArray<T> Implements Printable

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

    std/collections/immutable.fb, line 314

    • Public Method ToString(): String method #

      Its values, in order, as an array shows them: "[1, 2, 3]".

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