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

Finding the size of an Icon list

Tech Computer Center logo

The unary ``*'' operator, applied to a list, returns the number of elements in the list. For example, this program fragment should print the number 23:

    foo  :=  list ( 23 );
    write ( * foo );
Here is an expression that writes every element of list ``L'':
    every  i := 1 to ( * L )  do
      write ( L[i] );

Next: Using Icon lists as arrays
See also: Using the list type in Icon
Previous: Creating an Icon list of a fixed size
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