Deque
Functions for persistent, double-ended queues.
empty
func empty<T>() : Deque<T>
Empty queue
isEmpty
func isEmpty<T>(q : Deque<T>) : Bool
True when the queue is empty
peekFront
func peekFront<T>(q : Deque<T>) : ?T
Inspect the (optional) first element on the front end of the queue
peekBack
func peekBack<T>(q : Deque<T>) : ?T
Inspect the (optional) first element on the back end of the queue