Versions in this module Expand all Collapse all v1 v1.0.0 Jul 23, 2022 Changes in this version + type Deque struct + func NewCappedDeque(capacity int) *Deque[T] + func NewDeque() *Deque[T] + func (s *Deque[T]) Append(item T) bool + func (s *Deque[T]) Capacity() int + func (s *Deque[T]) Empty() bool + func (s *Deque[T]) First() T + func (s *Deque[T]) Full() bool + func (s *Deque[T]) Last() T + func (s *Deque[T]) Pop() T + func (s *Deque[T]) Prepend(item T) bool + func (s *Deque[T]) Shift() T + func (s *Deque[T]) Size() int + type PQType int + const MAXPQ + const MINPQ + type PQueue struct + func NewPQueue(pqType PQType) *PQueue[T] + func (pq *PQueue[T]) Empty() bool + func (pq *PQueue[T]) Head() (T, int) + func (pq *PQueue[T]) Pop() (T, int) + func (pq *PQueue[T]) Push(value T, priority int) + func (pq *PQueue[T]) Size() int + type Queue struct + func NewQueue() *Queue[T] + func (q *Queue[T]) Dequeue() T + func (q *Queue[T]) Enqueue(item T) + func (q *Queue[T]) Head() T + type Stack struct + func NewStack() *Stack[T] + func (s *Stack[T]) Head() T + func (s *Stack[T]) Pop() T + func (s *Stack[T]) Push(item T)