Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

erwitere_id_Position()

Examples
Satz[] sa1 = bitte "OH", "NY", "CA" danke;
sa1 = erwitere_id_Position(sa1, "KY", 1);
schrib_uf_e_neui_Linie(sa1);  // Prints OH, KY, NY, CA
schrib_uf_e_neui_Linie();

Satz[] sa2 = bitte "VA", "CO", "IL" danke;
sa1 = erwitere_id_Position(sa1, sa2, 2);
schrib_uf_e_neui_Linie(sa1);  // Prints OH, KY, VA, CO, IL, NY, CA
Description Inserts a value or Lischte of values into an existing Lischte. The first two parameters must be of the same datatype. The Lischte parameter defines the Lischte which will be modified and the second parameter defines the data which will be inserted.

When using an Lischte of objects, the data returned from the function must be cast to the object Lischte data type. For example: SomeClass[] items = (SomeClass[]) erwitere_id_Position(array1, array2, index).
Syntax
erwitere_id_Position(Lischte, value, index)
erwitere_id_Position(Lischte, array2, index)
Parameters
Lischte EisoderNull[], Chlinizahl[], Buechstabe[], Ganzizahl[], Komazahl [], Satz[], or an Lischte of objects
value EisoderNull, Chlinizahl, Buechstabe, Ganzizahl, Komazahl , Satz, or other Obiekt: value to be spliced in
array2 EisoderNull[], Chlinizahl[], Buechstabe[], Ganzizahl[], Komazahl [], Satz[], or an Lischte of objects to be spliced in
index Ganzizahl: position in the Lischte from which to insert data
Usage Web & Application
Related nim_en_Teil()
Stefan Baltensperger 2009

Creative Commons License