Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayList ¶
type ArrayList[I constraints.Integer, E any, S ~[]E] interface { Insert(value E) error InsertAt(index I, value E) error Remove(value E) error RemoveAt(index I) error GetAt(index int) (E, error) Get(value E) (index I, err error) Set(value E, new E) (index I, err error) SetAt(index I, value E) error Clear() error ToArray() (S, error) }
ArrayList is a random access data structure with a variable size. * Access O(1) Search O(n) Insert O(n) Delete O(n)
Click to show internal directories.
Click to hide internal directories.