Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterable ¶
type Iterable[T any] interface { // All returns an Iterator over all the elements of this Iterable. All() iter.Seq[T] }
Iterable denotes a type that can be iterated over by using the Iterator supplied using the Iterator method.
type List ¶
type List[T any] interface { Collection[T] Get(idx int) T }
type MutableCollection ¶
type MutableCollection[T any] interface { Collection[T] Add(t T) Remove() T AddAll(iter.Seq[T]) }
type MutableDeque ¶
type MutableDeque[T any] interface { Deque[T] MutableCollection[T] MutableStack[T] MutableQueue[T] AddFront(t T) RemoveFront() T AddBack(t T) RemoveBack() T }
type MutableList ¶
type MutableList[T any] interface { List[T] MutableCollection[T] Set(idx int, t T) }
type MutableMap ¶
type MutableQueue ¶
type MutableQueue[T any] interface { Queue[T] MutableCollection[T] }
type MutableSet ¶
type MutableSet[T any] interface { MutableCollection[T] Set[T] RemoveElement(T) RemoveAll(Collection[T]) RetainAll(Collection[T]) }
type MutableStack ¶
type MutableStack[T any] interface { Stack[T] MutableCollection[T] Push(t T) Pop() T }
type Queue ¶
type Queue[T any] interface { Collection[T] Peek() T }
type Set ¶
type Set[T any] interface { Collection[T] Contains(T) bool ContainsAll(Collection[T]) bool }
type Stack ¶
type Stack[T any] interface { Collection[T] Peek() T }
Click to show internal directories.
Click to hide internal directories.