Queue/Usage: Difference between revisions
Content added Content deleted
Line 2,485: | Line 2,485: | ||
queue foo is empty</pre> |
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}}== |
=={{header|Wart}}== |
||
See [[FIFO#Wart|FIFO]] for implementation. |
See [[FIFO#Wart|FIFO]] for implementation. |