
■ CEM3 LIST EL.EM GET I similar to GET, but it also increments
a position index. The new index is put on level 2. The original list
is put on level 3.
fPRG 1 LIST ELEM F’UT takes an object from level 1 and
replaces an existing object within a list. You must supply a position
index on level 2, and a list on level 3. The resulting list is on level
1.
(PRG) L.IST ELEM F'UTI similar to PUT, but it also increments
a position index. The new index is put on level 1. The new list is on
level 2.
(PRGl LI
number of elements in the list.
replaces the list on level 1 with the
■ fPRG ) L. I S T E L E M P 0 S replaces a list on level 2 and an
element from that list on level 1 with a position index for the
first occurrence of that element. If the element is not found, 0 is
returned.
m fPRG 1 LIST OE'J"?.' puts each object from a list on level 1 onto
the stack, plus puts the number of objects in level 1.
returns a list of elements from the list on
(PRGl LIST
level 3 specified by the starting and ending positions in levels 2 and
1.
■ (PRG I L I ST REPL replaces elements of a list on level 3 with
elements from a list on level 1 starting at the element specified in
level 2.
17
Sequences
Sequence commands automate the generation of a list from the
repeated execution of a function or program.
1. Enter the function or program (or its name).
2. Enter the index variable name.
3. Enter the initial value for the variable.
4. Enter the final value for the variable.
Lists and Sequences 17-7
Kommentare zu diesen Handbüchern