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