Queue/Usage: Difference between revisions
Content added Content deleted
m (moved FIFO (usage) to Queue/Usage) |
(Added PicoLisp) |
||
Line 495: | Line 495: | ||
2345 |
2345 |
||
array is empty</lang> |
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}}== |
=={{header|Python}}== |
||
<lang python>import Queue |
<lang python>import Queue |