Next
/
Previous
/ Index
/ TCC Help System
/ Publications
/ Site map
/ NM Tech homepage
Finding the size of an Icon list
|
|
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 Computer Center: Help System
TCC Publications
Home:
About New Mexico Tech
John Shipman, john@nmt.edu
Last updated: 1996/01/06 21:12:57 UT
URL: http://www.nmt.edu/tcc/help/lang/icon/listsize.html