up previous next
insert

insert an object in a list

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

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