|
Insert
Insert[liste, elem, n] fügt elem an Position n in liste ein. Ist n negativ, so wird die Position vom Ende her gezählt.
Insert[ausdr, elem, i, j, ... ] fügt elem an Position i, j, ... in ausdr ein.
Insert[ausdr, elem,   , , ... ,  , , ... , ... ] fügt elem an mehreren Positionen ein.
Beispiele: Insert[ a, b, c , x, 2] .
Insert[ a, b, c , x,  1 , -1 ] .
Insert[ a, b , c, d , x, 2, 1 ] .
liste kann einen beliebigen Kopf haben, der nicht unbedingt List sein muß.
Siehe Das Mathematica Buch: 1.8.6.
Siehe auch: Prepend, Append, StringInsert, Take, Drop, Delete, ReplacePart, FlattenAt, Position, Sequence.
Further Examples
|