Queue/Usage: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
(Added Easylang) |
||
Line 1,181: | Line 1,181: | ||
E also has queues in the standard library such as <code><import:org.erights.e.examples.concurrency.makeQueue></code>, but they are designed for concurrency purposes and do not report emptiness but rather return a promise for the next element. |
E also has queues in the standard library such as <code><import:org.erights.e.examples.concurrency.makeQueue></code>, but they are designed for concurrency purposes and do not report emptiness but rather return a promise for the next element. |
||
=={{header|EasyLang}}== |
|||
Uses the queue-definition given at [[Queue/Definition#EasyLang]] |
|||
<syntaxhighlight> |
|||
# queue definition |
|||
# |
|||
qu_enq 2 |
|||
qu_enq 5 |
|||
qu_enq 7 |
|||
while qu_empty = 0 |
|||
print qu_deq |
|||
. |
|||
</syntaxhighlight> |
|||
=={{header|Elena}}== |
=={{header|Elena}}== |