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_q lib inspect.ex
Raw

lib/inspect.ex

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