Okasaki.Protocols.Deque protocol (Okasaki v1.0.1) View Source
Link to this section Summary
Functions
True if the deque is empty.
Inserts a new item to the left end of the deque.
Inserts a new item to the right end of the deque.
Checks if a certain element is part of the deque.
Removes an item from the left side of the deque.
Removes an item from the right side of the deque.
Returns the number of elements currently in the queue.
Converts the deque to a list.
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Specs
True if the deque is empty.
Specs
Inserts a new item to the left end of the deque.
Specs
Inserts a new item to the right end of the deque.
Specs
Checks if a certain element is part of the deque.
Specs
Removes an item from the left side of the deque.
Specs
Removes an item from the right side of the deque.
Specs
size(t()) :: non_neg_integer()
Returns the number of elements currently in the queue.
Specs
Converts the deque to a list.