queue

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fill

func Fill[T any](value T, count int) collections.Queue[T]

Fill creates a new linked queue filled with the given value repeated the given number of times.

func From

func From[T any](e collections.Enumerator[T]) collections.Queue[T]

From creates a new queue from the given enumerator.

func New

func New[T any](size ...int) collections.Queue[T]

New creates a new linked queue.

This may optionally have an initial size 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL