exqueue v0.1.0 FQueue View Source

An elixir queue implement using fingertree.

Link to this section Summary

Functions

Get the back element of a queue

Return true when the queue is empty, false when the queue is not empty

Get the front element of a queue

Return an empty queue

Pop the front element of a queue

Push an element to the back of a queue

Return the size of a queue

Link to this section Types

Link to this section Functions

Link to this function back(queue) View Source
back(t) :: any

Get the back element of a queue.

Link to this function empty?(queue) View Source
empty?(t) :: boolean

Return true when the queue is empty, false when the queue is not empty.

Link to this function front(queue) View Source
front(t) :: any

Get the front element of a queue.

Return an empty queue.

Pop the front element of a queue.

Link to this function push(queue, element) View Source
push(t, any) :: t

Push an element to the back of a queue.

Link to this function size(queue) View Source
size(t) :: non_neg_integer

Return the size of a queue.