RosettaCodeData/Task/Queue-Usage/Oforth/queue-usage.oforth

6 lines
103 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
: testQueue
| q i |
Queue new ->q
20 loop: i [ i q push ]
while ( q empty not ) [ q pop . ] ;