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.Queue[T]
Fill creates a new linked queue filled with the given value repeated the given number of times. This may include an optional capacity. The capacity must be larger than the count to have any effect.
func From ¶
func From[T any](e collections.Enumerator[T], capacity ...int) collections.Queue[T]
From creates a new queue from the given enumerator.
func New ¶
func New[T any](sizes ...int) collections.Queue[T]
New creates a new linked queue with capacity.
This may optionally have an initial size or capacity to pre-populate the queue with that number of zero values.
func With ¶
func With[T any](values ...T) collections.Queue[T]
With creates a queue with the given values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.