generic

package
v3.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: AGPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T any]() *Queue[T]

func (*Queue[T]) Clear

func (q *Queue[T]) Clear()

func (*Queue[T]) IsEmpty

func (q *Queue[T]) IsEmpty() bool

func (*Queue[T]) Len

func (q *Queue[T]) Len() int

func (*Queue[T]) Peek

func (q *Queue[T]) Peek() T

func (*Queue[T]) PeekN

func (q *Queue[T]) PeekN(n int) []T

func (*Queue[T]) Pop

func (q *Queue[T]) Pop() T

func (*Queue[T]) PopAll

func (q *Queue[T]) PopAll() []T

func (*Queue[T]) PopN

func (q *Queue[T]) PopN(n int) []T

func (*Queue[T]) PopUntil

func (q *Queue[T]) PopUntil(f func(T) bool) []T

func (*Queue[T]) PopWhile

func (q *Queue[T]) PopWhile(f func(T) bool) []T

func (*Queue[T]) Push

func (q *Queue[T]) Push(v T)

Jump to

Keyboard shortcuts

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