Queue/Definition: Difference between revisions
Content added Content deleted
(→{{header|Picat}}: Split into subsections.) |
|||
Line 4,789: | Line 4,789: | ||
=={{header|Picat}}== |
=={{header|Picat}}== |
||
First variant |
===First variant=== |
||
<lang Picat>go => |
<lang Picat>go => |
||
println("Test 1"), |
println("Test 1"), |
||
Line 4,859: | Line 4,859: | ||
End of tests.</pre> |
End of tests.</pre> |
||
===Always returning the queue=== |
|||
Another approach is to always returns the queue which makes command chaining possible, e,g, |
Another approach is to always returns the queue which makes command chaining possible, e,g, |
||
⚫ | |||
<pre> |
|||
⚫ | |||
Q := Q.pop2(V1).pop2(V2) |
Q := Q.pop2(V1).pop2(V2) |
||
</pre> |
</pre> |
||
Line 4,938: | Line 4,938: | ||
q = []</pre> |
q = []</pre> |
||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |