Skip to content

FixedArray

Algorand TypeScript


Algorand TypeScript / index / FixedArray

Defined in: arrays.ts:9

A fixed sized array

TItem

The type of a single item in the array

TLength extends number

The fixed length of the array

  • ConcatArray<TItem>

[index: uint64]: TItem

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

new FixedArray<TItem, TLength>(): FixedArray<TItem, TLength>

Defined in: arrays.ts:13

Create a new FixedArray instance

FixedArray<TItem, TLength>

new FixedArray<TItem, TLength>(…items): FixedArray<TItem, TLength>

Defined in: arrays.ts:18

Create a new FixedArray instance with the specified items

TItem[] & object

The initial items for the array

FixedArray<TItem, TLength>

get length(): uint64

Defined in: arrays.ts:32

Returns the statically declared length of this array

uint64

ConcatArray.length

[iterator](): IterableIterator<TItem>

Defined in: arrays.ts:69

Returns an iterator for the items in this array

IterableIterator<TItem>


at(index): TItem

Defined in: arrays.ts:41

Returns the item at the given index. Negative indexes are taken from the end.

Uint64Compat

The index of the item to retrieve

TItem


concat(…items): TItem[]

Defined in: arrays.ts:25

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

…(TItem | ConcatArray<TItem>)[]

Another array to concat with this one

TItem[]


entries(): ArrayIterator<readonly [uint64, TItem]>

Defined in: arrays.ts:76

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

ArrayIterator<readonly [uint64, TItem]>


join(separator?): string

Defined in: arrays.ts:99

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

string

string

Join is not supported in Algorand TypeScript

ConcatArray.join


keys(): IterableIterator<uint64>

Defined in: arrays.ts:83

Returns an iterator for the indexes in this array

IterableIterator<uint64>


slice(): TItem[]

Defined in: arrays.ts:48

TItem[]

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

ConcatArray.slice

slice(end): TItem[]

Defined in: arrays.ts:54

Uint64Compat

An index in which to stop copying items.

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.

ConcatArray.slice

slice(start, end): TItem[]

Defined in: arrays.ts:61

Uint64Compat

An index in which to start copying items.

Uint64Compat

An index in which to stop copying items

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.

ConcatArray.slice