Jump to content

Queue/Definition: Difference between revisions

obsolete
(Add Cowgol)
(obsolete)
Line 1,106:
 
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}}==
1,532

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.