deque

package module
v0.0.0-...-e70ca8c Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deque

type Deque[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Deque[T]

func (*Deque[T]) Back

func (d *Deque[T]) Back() (T, error)

func (*Deque[T]) Empty

func (d *Deque[T]) Empty() bool

func (*Deque[T]) Front

func (d *Deque[T]) Front() (T, error)

func (*Deque[T]) Pop

func (d *Deque[T]) Pop() (T, error)

func (*Deque[T]) PopBack

func (d *Deque[T]) PopBack() (T, error)

func (*Deque[T]) PopFront

func (d *Deque[T]) PopFront() (T, error)

func (*Deque[T]) Print

func (d *Deque[T]) Print()

func (*Deque[T]) Push

func (d *Deque[T]) Push(elem T)

just standard shorthand

func (*Deque[T]) PushBack

func (d *Deque[T]) PushBack(elem T)

func (*Deque[T]) PushFront

func (d *Deque[T]) PushFront(elem T)

func (*Deque[T]) PushSlice

func (d *Deque[T]) PushSlice(xs []T)

func (*Deque[T]) PushSliceBack

func (d *Deque[T]) PushSliceBack(xs []T)

func (*Deque[T]) PushSliceFront

func (d *Deque[T]) PushSliceFront(xs []T)

func (*Deque[T]) String

func (d *Deque[T]) String() string

Jump to

Keyboard shortcuts

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