queue

package
v0.0.0-...-8859e38 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	First *node.Node
	Last  *node.Node
	Size  int
}

func NewEmptyQueue

func NewEmptyQueue() Queue

func NewQueue

func NewQueue(n *node.Node) Queue

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

func (*Queue) Peek

func (q *Queue) Peek() (int, error)

func (*Queue) Pop

func (q *Queue) Pop() (int, error)

func (*Queue) Push

func (q *Queue) Push(i int)

Jump to

Keyboard shortcuts

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