tsenyaKwaTshimologong
Prepends values to an array.
tsenyaKwaTshimologong(lenaane, boleng)Mutates the array by adding values at its beginning in their supplied order. Returns the new length. With no extra values, returns the unchanged length.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
lenaane | lenaane | The array to operate on. |
boleng | boleng | One or more values to prepend. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(320, 220);
bokamorago(235);
diri a = [3, 4];
tsenyaKwaTshimologong(a, 1, 2);
bogoloJwaMokwalo(32);
thalaMokwalo(mokwalo(a), 60, 120);
emisaPoapoeletso();
}