Packages

An Elixir wrapper around the Erlang optimized `queue` that supports the FIFO, first-in first-out, pattern. This is useful is when you can't predict when an item needs to be taken or added to the queue. Use this instead of using `++` or double reversing lists to add items to the "back" of a queue.

Current section

Files

Jump to
e_queue lib inspect.ex
Raw

lib/inspect.ex

defimpl Inspect, for: EQueue do
@spec inspect(EQueue.t, Keyword.t) :: String.t
def inspect(queue = %EQueue{}, _opts) do
"#EQueue<#{inspect EQueue.to_list(queue)}>"
end
end