Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

Using Icon lists as queues

Tech Computer Center logo

We have seen how the ``push()'' and ``pop()'' function aid in `Using Icon lists as stacks'. Two more functions allow elements to be added and removed from the end of any list:

To sum up, here is a picture of how the four stack and queue functions in Icon work:

   push -->  +--------+--------+-------+--------+  <-- put
             |  L[1]  |  L[2]  |  ...  |  L[*L] |
   pop  <--  +--------+--------+-------+--------+  --> pull

Next: Generating the elements of an Icon list
See also: Using the list type in Icon
Previous: Using Icon lists as stacks
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 1996/01/06 21:12:57 UT
QR two-dimensional bar code