List[T]
- typeList[T]
A growable array.
- functionconcat(self: List[T], other: List[T]) List[T]
Concatenate this list with another, returning the result.
The arguments are not mutated by this function.
- functioncontains(self: List[T], item: T) bool
Returns
trueif this list contains the given item, andfalseotherwise.
- functionget(self: List[T], idx: u64) Option[T]
Get an element from the list.
This function returns
Noneif the index is out of bounds.
- functionindex(self: List[T], item: T) Option[u64]
Returns the index of the first occurrence of the given item in this list, or
Noneif the item is not found.