Queue/Usage: Difference between revisions

Line 2,485:
queue foo is empty</pre>
 
=={{header|VBA}}==
See [[Queue/Definition#VBA]] for implementation.
The FiFo queue has been implemented with Collection. queue.count will return number of items in the queue. queue(i) will return the i-th item in the queue.
<lang vb>Public Sub fifo()
push "One"
push "Two"
push "Three"
Debug.Print pop, pop, pop, empty_
End Sub</lang>{{out}}
<pre>One Two Three True</pre>
=={{header|Wart}}==
See [[FIFO#Wart|FIFO]] for implementation.
255

edits