TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Function

Insert_ ( list L, any a, elt-ord^rat pos )

Description

Insert `a' in `L' at position `pos', resize `L' to cover the the insertion.
Note: `pos' must not be negative nor 0 nor exceed the scope of `L' (Size(L)) by more than 1.
Note: This function works by side effect and returns VOID.

Examples

L:=[1,,3,4]; Insert_(L,2,2); L;
L2:=[1,2]; Insert_(L2,3,3); L2;

Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group