array¶ class guppylang.std.builtins.array(*args: _T)[source]¶ Sequence of homogeneous values with statically known fixed length. __getitem__(idx: int) → L[source]¶ x.__getitem__(y) <==> x[y] __iter__() → SizedIter[ArrayIter[L, n], n][source]¶ Implement iter(self). __len__() → int[source]¶ Return len(self). static __new__(cls, *args: _T) → list[_T][source]¶ __new_guppy__()¶ __setitem__(idx: int, value: L @ owned) → None[source]¶ Set self[key] to value. copy() → array[T, n][source]¶ Copy an array instance. Will only work if T is a copyable type.