Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 212 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 212 Bytes

Queue

iex -S mix
{:ok, q} = Queue.start_link([])
Queue.enqueue(q, :hello)
Queue.enqueue(q, :im)
Queue.enqueue(q, :arthur)
Queue.dequeue(q) => hello
Queue.dequeue(q) => im
Queue.dequeue(q) => arthur