7 lines
168 B
Text
7 lines
168 B
Text
let myQueue = Queue[Str]()
|
|
myQueue.push 'foo'
|
|
myQueue.push 'bar'
|
|
myQueue.push 'baz'
|
|
print myQueue.pop() # 'foo'
|
|
print myQueue.pop() # 'bar'
|
|
print myQueue.pop() # 'baz'
|