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