Deque
A double-ended queue: elements are pushed and popped at either end in constant time, amortized over the growth of its storage, and read at any index in constant time. Index 0 is the front.
let queue = Deque.new(16)
Deque.pushBack(queue, start)
while let Some(here) = Deque.popFront(queue) { ... }
An empty Deque with room for capacity elements before it must grow.
Copies: a Deque and an Array never share their elements.
The elements from front to back, copied.
The element i from the front, or None past either end. xs[i] is the
one that panics.
Drop every element, keeping the capacity.
A new Deque: the elements of xs, then those of ys.
Front to back.
Equal when they have the same length and equal elements from the front, whatever their capacity and wherever in their storage the front is.
The call that builds it, Deque.fromArray([x, ...]), front to back.
What its Debug prints: a container's text shows its elements' Debug,
so that a string in it is quoted.