queue

package
v0.0.0-...-37c5686 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package queue implements FIFO and LIFO queues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fifo

type Fifo[E any] struct {
	// contains filtered or unexported fields
}

func (*Fifo[E]) DeleteFunc

func (q *Fifo[E]) DeleteFunc(f func(E) bool)

func (*Fifo[E]) Len

func (q *Fifo[E]) Len() int

func (*Fifo[E]) Shift

func (q *Fifo[E]) Shift() (v E, ok bool)

func (*Fifo[E]) Unshift

func (q *Fifo[E]) Unshift(v E)

type Lifo

type Lifo[E any] struct {
	// contains filtered or unexported fields
}

func (*Lifo[E]) DeleteFunc

func (q *Lifo[E]) DeleteFunc(f func(E) bool)

func (*Lifo[T]) Len

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

func (*Lifo[E]) Pop

func (q *Lifo[E]) Pop() (v E, ok bool)

func (*Lifo[E]) Push

func (q *Lifo[E]) Push(v E)

Jump to

Keyboard shortcuts

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