deque

package
v0.0.0-...-e90a610 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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
}

func (*Deque) DeleteFront

func (d *Deque) DeleteFront() (o interface{}, err error)

func (*Deque) DeleteRear

func (d *Deque) DeleteRear() (o interface{}, err error)

func (*Deque) GetFront

func (d *Deque) GetFront() (o interface{}, err error)

func (*Deque) GetRear

func (d *Deque) GetRear() (o interface{}, err error)

func (*Deque) InsertFront

func (d *Deque) InsertFront(o interface{})

func (*Deque) InsertRear

func (d *Deque) InsertRear(o interface{})

func (*Deque) IsEmpty

func (d *Deque) IsEmpty() bool

func (*Deque) Size

func (d *Deque) Size() int

type IDeque

type IDeque interface {
	InsertFront(o interface{})
	InsertRear(o interface{})
	DeleteFront() (o interface{}, err error)
	DeleteRear() (o interface{}, err error)

	GetFront() (o interface{}, err error)
	GetRear() (o interface{}, err error)
	Size() int
	IsEmpty() bool
}

IDeque defines the deque interface

Jump to

Keyboard shortcuts

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