up previous next
insert

insert an object in a list

Syntax
insert(ref V: LIST, N: INT, E: OBJECT)

where V is a variable containing a list.

Description
This function inserts E into the list L as the N-th component.

Example
/**/  L := ["a","b","d","e"];
/**/  insert(ref L,3,"c");
/**/  L;
["a", "b", "c", "d", "e"]

See Also