Std.Deque
21 public declarations
- back
&Std.Deque.Deque[T] -> Option[T]The element at the back, or `None` for an empty queue.
- concat
&Std.Deque.Deque[T] -> &Std.Deque.Deque[T] -> Std.Deque.Deque[T]Two queues joined, the left one's elements first.
- contains
&Std.Deque.Deque[T] -> T -> Bool where T: EqWhether an element is present.
- Deque
A queue that can be added to and taken from at either end.
- dropBack
&Std.Deque.Deque[T] -> Std.Deque.Deque[T]The queue without its back element, unchanged when there is none.
- dropFront
&Std.Deque.Deque[T] -> Std.Deque.Deque[T]The queue without its front element, unchanged when there is none.
- empty
Std.Deque.Deque[T]A queue with nothing in it.
- filter
&Std.Deque.Deque[T] -> fn(T) -> Bool -> Std.Deque.Deque[T]The elements that satisfy a test, order kept.
- fold
&Std.Deque.Deque[T] -> A -> fn(A, T) -> A -> AThe elements combined from the front.
- fromArray
&Array[T] -> Std.Deque.Deque[T]A queue holding the elements of an array, first at the front.
- front
&Std.Deque.Deque[T] -> Option[T]The element at the front, or `None` for an empty queue.
- get
&Std.Deque.Deque[T] -> Int -> Option[T]The element at a position counted from the front, or `None`.
- isEmpty
&Std.Deque.Deque[T] -> BoolWhether the queue holds nothing.
- length
&Std.Deque.Deque[T] -> IntHow many elements the queue holds.
- map
&Std.Deque.Deque[A] -> fn(A) -> B -> Std.Deque.Deque[B]Every element transformed, order kept.
- popBack
&Std.Deque.Deque[T] -> Option[(T, Std.Deque.Deque[T])]The back element and the queue without it, or `None` when there is none.
- popFront
&Std.Deque.Deque[T] -> Option[(T, Std.Deque.Deque[T])]The front element and the queue without it, or `None` when there is none.
- pushBack
&Std.Deque.Deque[T] -> T -> Std.Deque.Deque[T]The queue with an element added at the back.
- pushFront
&Std.Deque.Deque[T] -> T -> Std.Deque.Deque[T]The queue with an element added at the front.
- reversed
&Std.Deque.Deque[T] -> Std.Deque.Deque[T]The queue with its ends exchanged, so what was first is last.
- toArray
&Std.Deque.Deque[T] -> Array[T]Every element in order, front first.
