Skip to content
ExamplesOpen editor ↗

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.

NameTypeDescription
lenaanelenaaneThe array to operate on.
bolengbolengOne or more values to prepend.
Prepends values to an array
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = [3, 4];
  tsenyaKwaTshimologong(a, 1, 2);
  bogoloJwaMokwalo(32);
  thalaMokwalo(mokwalo(a), 60, 120);
  emisaPoapoeletso();
}

balaLenaane, kopololaKarolo