RosettaCodeData/Task/Queue-Usage/Oforth/queue-usage.fth
2023-07-01 13:44:08 -04:00

5 lines
103 B
Forth

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