Arc4ArrayBase
Algorand TypeScript / arc4 / <internal> / Arc4ArrayBase
Defined in: arc4/encoded-types.ts:237
A base type for arc4 array types
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TItem extends ARC4Encoded
Implements
Section titled “Implements”ConcatArray<TItem>
Indexable
Section titled “Indexable”[index: uint64]: TItem
Get or set the item at the specified index. Negative indexes are not supported
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”
protectednew Arc4ArrayBase<TItem>():Arc4ArrayBase<TItem>
Defined in: arc4/encoded-types.ts:238
Returns
Section titled “Returns”Arc4ArrayBase<TItem>
Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get bytes():
bytes
Defined in: arc4/encoded-types.ts:102
Retrieve the encoded bytes for this type
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”length
Section titled “length”Get Signature
Section titled “Get Signature”get length():
uint64
Defined in: arc4/encoded-types.ts:245
Returns the current length of this array
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”ConcatArray.length
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
IterableIterator<TItem>
Defined in: arc4/encoded-types.ts:292
Returns an iterator for the items in this array
Returns
Section titled “Returns”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.
Parameters
Section titled “Parameters”The index of the item to retrieve
Returns
Section titled “Returns”TItem
entries()
Section titled “entries()”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
Returns
Section titled “Returns”IterableIterator<readonly [uint64, TItem]>
join()
Section titled “join()”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)
Parameters
Section titled “Parameters”separator?
Section titled “separator?”string
Returns
Section titled “Returns”string
Deprecated
Section titled “Deprecated”Join is not supported in Algorand TypeScript
Implementation of
Section titled “Implementation of”ConcatArray.join
keys()
Section titled “keys()”keys():
IterableIterator<uint64>
Defined in: arc4/encoded-types.ts:306
Returns an iterator for the indexes in this array
Returns
Section titled “Returns”IterableIterator<uint64>
slice()
Section titled “slice()”Call Signature
Section titled “Call Signature”slice():
TItem[]
Defined in: arc4/encoded-types.ts:261
Returns
Section titled “Returns”TItem[]
Deprecated
Section titled “Deprecated”Array slicing is not yet supported in Algorand TypeScript Create a new Dynamic array with all items from this array
Implementation of
Section titled “Implementation of”ConcatArray.slice
Call Signature
Section titled “Call Signature”slice(
end):TItem[]
Defined in: arc4/encoded-types.ts:267
Parameters
Section titled “Parameters”An index in which to stop copying items.
Returns
Section titled “Returns”TItem[]
Deprecated
Section titled “Deprecated”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.
Implementation of
Section titled “Implementation of”ConcatArray.slice
Call Signature
Section titled “Call Signature”slice(
start,end):TItem[]
Defined in: arc4/encoded-types.ts:274
Parameters
Section titled “Parameters”An index in which to start copying items.
An index in which to stop copying items
Returns
Section titled “Returns”TItem[]
Deprecated
Section titled “Deprecated”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.
Implementation of
Section titled “Implementation of”ConcatArray.slice