qex v0.3.0 Qex

A :queue wrapper with improvements in API and addition of Protocol implementations

Protocols

Inspect, Collectable and Enumerable are implemented

Summary

Types

t()
t

Functions

new(init_data \\ [])
new([term] | Range.t) :: t
pop(qex)
pop(t) :: {{:value, term}, t} | {:empty, t}
pop!(qex)
pop!(t) :: {term, t} | no_return
pop_back(qex)
pop_back(t) :: {{:value, term}, t} | {:empty, t}
pop_back!(qex)
pop_back!(t) :: {term, t} | no_return
push(qex, item)
push(t, term) :: t
push_front(qex, item)
push_front(t, term) :: t
reverse(qex)
reverse(t) :: t
split(qex, n)
split(t, pos_integer) :: {t, t}