Previous Up Next

6.40.10  Inserting an element into a list or a string: insert

The insert command inserts elements into a list or string.


Examples.

insert returns an error if the index is too large.
Input:

insert([3,4,2],4,5)

Output:

insert([3,4,2],4,5)
Error: Invalid dimension

Previous Up Next