repository

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 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 MaxLenQueue

type MaxLenQueue[T comparable] struct {
	// contains filtered or unexported fields
}

func NewMaxLenQueue

func NewMaxLenQueue[T comparable](maxLen int, nilItemCreator func() T) MaxLenQueue[T]

func (*MaxLenQueue[T]) Dequeue

func (q *MaxLenQueue[T]) Dequeue() T

func (*MaxLenQueue[T]) Enqueue

func (q *MaxLenQueue[T]) Enqueue(item T)

func (*MaxLenQueue[T]) GetAll

func (q *MaxLenQueue[T]) GetAll() []T

func (*MaxLenQueue[T]) Peek

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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