pq

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ord

type Ord[T any] interface{ Compare(T, T) int }

type Queue

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

func New

func New[T any](ord Ord[T], seq ...T) Queue[T]

func (Queue[T]) Deq

func (q Queue[T]) Deq() T

func (Queue[T]) Enq

func (q Queue[T]) Enq(v T)

func (Queue[T]) Head

func (q Queue[T]) Head() T

func (Queue[T]) Len

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

Jump to

Keyboard shortcuts

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