Algorand TypeScript
    Preparing search index...

    Class FixedArray<TItem, TLength>

    A fixed sized array

    Type Parameters

    • TItem

      The type of a single item in the array

    • TLength extends number

      The fixed length of the array

    Implements

    Indexable

    • [index: uint64]: TItem

      Get or set the item at the specified index. Negative indexes are not supported

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get length(): uint64

      Returns the statically declared length of this array

      Returns uint64

    Methods

    • Returns an iterator for the items in this array

      Returns IterableIterator<TItem>

    • Returns a new array containing all items from this array, and other array

      Parameters

      • ...items: (TItem | ConcatArray<TItem>)[]

        Another array to concat with this one

      Returns TItem[]

    • Returns an iterator for a tuple of the indexes and items in this array

      Returns ArrayIterator<readonly [uint64, TItem]>

    • Creates a string by concatenating all the items in the array delimited by the specified separator (or ',' by default)

      Parameters

      • Optionalseparator: string

      Returns string

      Join is not supported in Algorand TypeScript

    • Returns an iterator for the indexes in this array

      Returns IterableIterator<uint64>

    • Returns TItem[]

      Array slicing is not yet supported in Algorand TypeScript Create a new Dynamic array with all items from this array

    • Parameters

      Returns TItem[]

      Array slicing is not yet supported in Algorand TypeScript Create a new DynamicArray with all items up till end. Negative indexes are taken from the end.

    • Parameters

      Returns TItem[]

      Array slicing is not yet supported in Algorand TypeScript Create a new DynamicArray with items from start, up until end Negative indexes are taken from the end.