up previous next
insert [OBSOLESCENT]    --    [OBSOLESCENT] insert an object in a list


Syntax
[OBSOLESCENT] insert(ref L: LIST, N: INT, E: OBJECT)

Description
This function inserts E into L as the N -th component. Kept just for backward compatibility, it is strongly discouraged for its intrinsic inefficiency. See append .

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

See Also