Lists

Lists are one-dimensional arrays of values. A list can contain only one type of value. The list can expand and contract dynamically, and items can be added to or removed from any position in the list. There is a cursor in each list which can be moved through it.

Most operations on lists can be done only through intrinsic AL procedures.


LIST listname [ datatype ]

If the data type is given, then the list is created. The list must not already exist.

If no data type is given, then the list is deleted. It is assumed that it exists.

The available data types are: crosspeak, dimension, expnucleus, integer, logical, nucleus, real, residue, sequence, spectrum, string.

See also: SHOW LIST and INTO.


INTO listname element { element }

Put the given values into the given list as elements. The given values must be interpretable as elements of the type of the given list. At least one value must be given. The action is the same as invoking the intrinsic AL procedure Into.

See also: LIST and SHOW LIST.


Per Kraulis 18 Apr 1996.