Skip to content

Arc4ArrayBase

Algorand TypeScript


Algorand TypeScript / arc4 / <internal> / Arc4ArrayBase

Defined in: arc4/encoded-types.ts:237

A base type for arc4 array types

TItem extends ARC4Encoded

  • ConcatArray<TItem>

[index: uint64]: TItem

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

protected new Arc4ArrayBase<TItem>(): Arc4ArrayBase<TItem>

Defined in: arc4/encoded-types.ts:238

Arc4ArrayBase<TItem>

ARC4Encoded.constructor

get bytes(): bytes

Defined in: arc4/encoded-types.ts:102

Retrieve the encoded bytes for this type

bytes

ARC4Encoded.bytes


get length(): uint64

Defined in: arc4/encoded-types.ts:245

Returns the current length of this array

uint64

ConcatArray.length

[iterator](): IterableIterator<TItem>

Defined in: arc4/encoded-types.ts:292

Returns an iterator for the items in this array

IterableIterator<TItem>


at(index): TItem

Defined in: arc4/encoded-types.ts:254

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

Uint64Compat

The index of the item to retrieve

TItem


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

Defined in: arc4/encoded-types.ts:299

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

IterableIterator<readonly [uint64, TItem]>


join(separator?): string

Defined in: arc4/encoded-types.ts:285

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: arc4/encoded-types.ts:306

Returns an iterator for the indexes in this array

IterableIterator<uint64>


slice(): TItem[]

Defined in: arc4/encoded-types.ts:261

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: arc4/encoded-types.ts:267

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: arc4/encoded-types.ts:274

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