tinyqueue

package
v0.0.0-...-5717fcf Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 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 Item

type Item interface {
	Less(Item) bool
}

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func New

func New(data []Item) *Queue

func (*Queue) Len

func (q *Queue) Len() int

func (*Queue) Peek

func (q *Queue) Peek() Item

func (*Queue) Pop

func (q *Queue) Pop() Item

func (*Queue) Push

func (q *Queue) Push(item Item)

Jump to

Keyboard shortcuts

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