RosettaCodeData/Task/Queue-Usage/Oforth/queue-usage.oforth
2016-12-05 23:44:36 +01:00

5 lines
103 B
Text

: testQueue
| q i |
Queue new ->q
20 loop: i [ i q push ]
while ( q empty not ) [ q pop . ] ;