7 lines
172 B
Text
7 lines
172 B
Text
let myQueue = Queue()
|
|
myQueue.push 'foo'
|
|
myQueue.push 'bar'
|
|
myQueue.push 'baz'
|
|
print myQueue.pop() # => 'foo'
|
|
print myQueue.pop() # => 'bar'
|
|
print myQueue.pop() # => 'baz'
|