Package genlayer.py.storage.vec#

Warning

This is an internal module

class genlayer.py.storage.vec.Array[source]#

Constantly sized array that can be persisted on the blockchain

__init__()[source]#

This class can’t be created with Array()

Raises:

TypeError – always

class genlayer.py.storage.vec.DynArray[source]#

Represents exponentially growing array (list in python terms) that can be persisted on the blockchain

__init__()[source]#

This class can’t be created with DynArray()

Raises:

TypeError – always

append(value: T) None[source]#

S.append(value) – append value to the end of the sequence

insert(index: int, value: T) None[source]#

S.insert(index, value) – insert value before index

pop([index]) item -- remove and return item at index (default last).[source]#

Raise IndexError if list is empty or index is out of range.