Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fill ¶
func Fill[T any](value T, count int, capacity ...int) collections.Stack[T]
Fill creates a new stack filled with the given value repeated the given number of times.
func From ¶
func From[T any](e collections.Enumerator[T], capacity ...int) collections.Stack[T]
From creates a new stack from the given enumerator.
func New ¶
func New[T any](sizes ...int) collections.Stack[T]
New creates a new stack.
This may optionally have an initial size to pre-populate the stack with that number of zero values.
func With ¶
func With[T any](values ...T) collections.Stack[T]
With creates a stack with the given values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.