Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deque ¶
type Deque[T any] struct { // contains filtered or unexported fields }
Deque represents a instance of the queue data container.
func (*Deque[T]) Clear ¶
func (dq *Deque[T]) Clear()
Clear clears the container. After this call, Len() returns zero.
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue represents a instance of the queue data container.
type Stack ¶
type Stack[T any] struct { // contains filtered or unexported fields }
Stack represents a instance of the stack data container.
type Tree ¶ added in v0.2.0
type Tree[K constraints.Ordered, V any] struct { Key K Value V // contains filtered or unexported fields }
func MakeTree ¶ added in v0.2.1
func MakeTree[K constraints.Ordered, V any](k K, v V) (*Tree[K, V], error)
MakeTree constructs and return a new Binary Tree.
Click to show internal directories.
Click to hide internal directories.