Documentation ¶
Index ¶
- Variables
- type Deque
- func (d *Deque[T]) IsEmpty() bool
- func (d *Deque[T]) Length() int
- func (d *Deque[T]) PeekBack() (T, error)
- func (d *Deque[T]) PeekFront() (T, error)
- func (d *Deque[T]) PopBack() (T, error)
- func (d *Deque[T]) PopFront() (T, error)
- func (d *Deque[T]) PushBack(value T)
- func (d *Deque[T]) PushFront(value T)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyQueue = errors.New("Queue is empty")
ErrEmptyQueue is an error which is returned when attempting to pop an item from an empty queue
Functions ¶
This section is empty.
Types ¶
type Deque ¶
Click to show internal directories.
Click to hide internal directories.