Anonymous user
Queue/Usage: Difference between revisions
Added PicoLisp
m (moved FIFO (usage) to Queue/Usage) |
(Added PicoLisp) |
||
Line 495:
2345
array is empty</lang>
=={{header|PicoLisp}}==
Using the implementation from [[FIFO]]:
<lang PicoLisp>(println (fifo 'Queue)) # Retrieve the number '1'
(println (fifo 'Queue)) # Retrieve an internal symbol 'abc'
(println (fifo 'Queue)) # Retrieve a transient symbol "abc"
(println (fifo 'Queue)) # and a list (abc)
(println (fifo 'Queue)) # Queue is empty -> NIL</lang>
Output:
<pre>1
abc
"abc"
(a b c)
NIL</pre>
=={{header|Python}}==
<lang python>import Queue
|