deque

package
v0.0.0-...-9fc3898 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 3 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
}

func NewDeque

func NewDeque() *Deque

func NewDequeWithCapacity

func NewDequeWithCapacity(capacity int) *Deque

func (*Deque) Append

func (this *Deque) Append(newVal interface{}) bool

func (*Deque) Capacity

func (this *Deque) Capacity() int

func (*Deque) Front

func (this *Deque) Front() (interface{}, error)

func (*Deque) IsEmpty

func (this *Deque) IsEmpty() bool

func (*Deque) IsFull

func (this *Deque) IsFull() bool

func (*Deque) Pop

func (this *Deque) Pop() (interface{}, error)

func (*Deque) Prepend

func (this *Deque) Prepend(newVal interface{}) bool

func (*Deque) Rear

func (this *Deque) Rear() (interface{}, error)

func (*Deque) Shift

func (this *Deque) Shift() (interface{}, error)

func (*Deque) Size

func (this *Deque) Size() int

Jump to

Keyboard shortcuts

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