Queue/Definition: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add Cowgol) |
Drkameleon (talk | contribs) (obsolete) |
||
Line 1,106: | Line 1,106: | ||
Error detected !!!!. |
Error detected !!!!. |
||
=={{header|Arturo}}== |
|||
<lang arturo>Queue #{ |
|||
list #() |
|||
push { |
|||
list list+& |
|||
} |
|||
pop { |
|||
if $(empty) { |
|||
panic "trying to pop from an empty queue!" |
|||
} |
|||
first_item $(first list) |
|||
list $(deleteBy list 0) |
|||
return first_item |
|||
} |
|||
empty { |
|||
$(size list)=0 |
|||
} |
|||
inspect { |
|||
log this |
|||
} |
|||
} |
|||
</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |