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

Name

nim_en_Teil()

Examples
Satz[] sa1 = bitte "OH ", "NY ", "CA ", "VA ", "CO ", "IL "danke;
Satz[] sa2 = nim_en_Teil(sa1, 1);
schrib_uf_e_neui_Linie(sa2);  // Prints NY, CA, VA, CO, IL
schrib_uf_e_neui_Linie();
Satz[] sa3 = nim_en_Teil(sa1, 2, 3);
schrib_uf_e_neui_Linie(sa3);  // Prints CA, VA, CO
Description Extracts an Lischte of elements from an existing Lischte. The Lischte parameter defines the Lischte from which the elements will be copied and the offset and length parameters determine which elements to extract. If no length is given, elements will be extracted from the offset to the end of the Lischte. When specifying the offset remember the first Lischte element is 0. This function does not change the source Lischte.

When using an Lischte of objects, the data returned from the function must be cast to the object Lischte's data type. For example: SomeClass[] items = (SomeClass[]) nim_en_Teil(originalLischte, 0, 4).
Syntax
nim_en_Teil(Lischte, offset)
nim_en_Teil(Lischte, offset, length)
Parameters
Lischte EisoderNull[], Chlinizahl[], Buechstabe[], Ganzizahl[], Komazahl [], Satz[], or an Lischte of objects
offset Ganzizahl: position to begin
length Ganzizahl: number of values to extract
Usage Web & Application
Related erwitere_id_Position()
Stefan Baltensperger 2009

Creative Commons License