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

Name

kopier_d_Lischte()

Examples
Satz[] north = bitte "OH", "IN", "MI"danke;
Satz[] south = bitte "GA", "FL", "NC"danke; 
kopier_d_Lischte(north, south);
schrib(south);  // Prints OH, IN, MI

Satz[] north = bitte "OH", "IN", "MI"danke;
Satz[] south = bitte "GA", "FL", "NC"danke; 
kopier_d_Lischte(north, 1, south, 0, 2);
schrib_uf_e_neui_Linie(south);  // Prints IN, MI, NC
Description Copies an array (or part of an array) to another array. The src array is copied to the dst array, beginning at the position specified by srcPos and into the position specified by dstPos. The number of elements to copy is determined by length. The simplified version with two arguments copies an entire array to another of the same size. It is equivalent to "arraykopier(src, 0, dst, 0, src.laengi)". This function is far more efficient for copying array data than iterating through a solang() and copying each element.
Syntax
kopier_d_Lischte(src, dest)
kopier_d_Lischte(src, dest, length)
kopier_d_Lischte(src, srcPos, dest, destPos, length)
Parameters
src an array of any data type: the source array
dest an array of any data type (as Langizahl as it's the same as src): the destination array
srcPos Ganzizahl: starting position in the source array
destPos Ganzizahl: starting position in the destination array
laengi Ganzizahl: number of array elements to be copied
Usage Web & Application
Stefan Baltensperger 2009

Creative Commons License