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