deque

package
v0.0.6 Latest Latest
Warning

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

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

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

Deque represents a deque of entry

func New

func New() *Deque

New returns a Deque

func (*Deque) AddFirst

func (d *Deque) AddFirst(el *entry.Entry)

AddFirst adds an entry at first of the Deque

func (*Deque) AddLast

func (d *Deque) AddLast(el *entry.Entry)

AddLast adds an entry at last of the Deque

func (*Deque) Len

func (d *Deque) Len() int

Len returns length of the Deque

func (*Deque) PollFirst

func (d *Deque) PollFirst() *entry.Entry

PollFirst pops and returns the first entry in the Deque

func (*Deque) PollLast

func (d *Deque) PollLast() *entry.Entry

PollLast pops and returns the last entry in the Deque

Jump to

Keyboard shortcuts

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