Jump to content

Queue/Usage: Difference between revisions

(→‎{{header|REXX}}: recoded the two versions of REXX programs to conform to the task's requirements. -- ~~~~)
Line 993:
# Queue.is_empty q;;
- : bool = true</lang>
 
=={{header|ooRexx}}==
ooRexx includes a built-in queue class.
<lang ooRexx>
q = .queue~new -- create an instance
q~queue(3) -- adds to the end, but this is at the front
q~push(1) -- push on the front
q~queue(2) -- add to the end
say q~pull q~pull q~pull q~isempty -- should display all and be empty
<lang>
 
=={{header|Oz}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.