queue

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue[A any] struct {
	Items []A
}

func Empty

func Empty[A any]() *Queue[A]

func FromIterator

func FromIterator[A any](initialElements iterable.Iterable[A]) *Queue[A]

func FromSlice

func FromSlice[A any](initialElements []A) *Queue[A]

func (*Queue[A]) Iterator

func (s *Queue[A]) Iterator() iterable.Iterator[A]

func (*Queue[A]) PeekFront

func (s *Queue[A]) PeekFront() *A

func (*Queue[A]) PopFront

func (s *Queue[A]) PopFront() *A

func (*Queue[A]) PushBack

func (s *Queue[A]) PushBack(a A)

Jump to

Keyboard shortcuts

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