Original Author Paul Laughton, 2011
Page 46
De Re BASIC!
Examples:
List.add Nlist, 2, 4, 8 , n^2, 32

List.add Hours, 3, 4,7,0, 99, 3, 66~
% comma not required before ~
37, 66, 43, 83,~
% comma is allowed before ~
83, n*5, q/2 +j

List.add Name~
"Bill", "Jones"~
"James", "Barnes"~
"Jill", "Hanson"
List.add.list <destination_list_pointer_nexp>, <source_list_pointer_nexp>
Appends the elements in the source list to the end of the destination list.
The two lists must be of the same type (string or numeric).
List.add.array <list_pointer_nexp>, Array[{<start>,<length>}]
Appends the elements of the specified array (Array[]) or array segment (Array[start,length]) to the end
of the specified list.
The Array type must be the same as the list type (string or numeric).
List.replace <pointer_nexp>, <index_nexp>, <sexp>|<nexp>
The List element specified by <index_nexp> in the list pointed to by <pointer_nexp> is replaced by the
value of the string or numeric expression.
The index is one-based. The first element of the list is 1.
The replacement expression type (string or numeric) must match the list type.
List.insert <pointer_nexp>, <index_nexp>, <sexp>|<nexp>
Inserts the <sexp> or <nexp> value into the list pointed to by <pointer_nexp> at the index point
<index_nexp>. If the index point is one more than the current size of the list, the new item is added at
the end of the list.
The index is ones based. The first element of the list is 1.
The inserted element type must match the list type (string or numeric).
List.remove <pointer_nexp>,<index_nexp>
Removes the list element specified by <index_nexp> from the list pointed to by <pointer_nexp>.
The index is ones based. The first element of the list is 1.