Transformation Lists Empty LISTobject Insertion

Insertion

If you have a list, the fundamental operation is insertion into the list. So there are two steps, first the generation of an empty LISTobject, and then the insertion into a list.

For the first step you simply call the standard routine init(), see the following example:

Example:
...
OP l = callocobject();
init(LIST,l);
println(l);
...
This prints the message
empty list
on the terminal.

The typical operation is the insertion of a new object into a list. This is done using the following routine:

There is also a test whether we are at the end of a list For checking of the installation you can use
harald.fripertinger "at" uni-graz.at, May 26, 2011

Transformation Lists Empty LISTobject Uni-Graz Mathematik Insertion Valid HTML 4.0 Transitional Valid CSS!