Queue/Usage: Difference between revisions

Line 1,658:
@queue.unshift('A'); # [ A, b ]
@queue.push('C'); # [ A, b, C ]</lang>
 
=={{header|Phix}}==
Using the implementation from [[Queue/Definition#Phix|Queue/Definition]]
<lang Phix>?empty() -- 1
push(5)
?empty() -- 0
push(6)
?pop() -- 5
?pop() -- 6
?empty() -- 1</lang>
 
=={{header|PHP}}==
7,806

edits