queues

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type THQueue

type THQueue[T any] struct {
	Q    []T
	H, T int
}

func NewTHQueue

func NewTHQueue[T any](initialSize int) *THQueue[T]

func (*THQueue[T]) Deq

func (q *THQueue[T]) Deq() T

func (*THQueue[T]) Enq

func (q *THQueue[T]) Enq(item T)

func (*THQueue[T]) IsEmpty

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

func (*THQueue[T]) Recycle

func (q *THQueue[T]) Recycle()

Jump to

Keyboard shortcuts

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