Skip to content
ExamplesOpen editor ↗

ribegaLenaane

Reverses array order in place.

ribegaLenaane(lenaane)

Mutates and returns the same array with its order reversed. Copy first with kopololaKarolo to keep the original order.

NameTypeDescription
lenaanelenaaneThe array to operate on.
Reverses array order in place
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = [1, 2, 3, 4];
  ribegaLenaane(a);
  bogoloJwaMokwalo(32);
  thalaMokwalo(mokwalo(a), 60, 120);
  emisaPoapoeletso();
}

balaLenaane, kopololaKarolo