Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Queue-Definition/Phix/queue-definition.phix
Normal file
15
Task/Queue-Definition/Phix/queue-definition.phix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
sequence queue = {}
|
||||
|
||||
procedure push(object what)
|
||||
queue = append(queue,what)
|
||||
end procedure
|
||||
|
||||
function pop()
|
||||
object what = queue[1]
|
||||
queue = queue[2..$]
|
||||
return what
|
||||
end function
|
||||
|
||||
function empty()
|
||||
return length(queue)=0
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue