Skip to content
ExamplesOpen editor ↗

tlosaYaBofelo

Removes and returns the last array value.

tlosaYaBofelo(lenaane)

Shortens the array by one slot and returns the removed value. On an empty array, returns undefined. Check balaLenaane(lenaane) > 0 before popping when you need an existing value. This operation does not restore drawing state.

NameTypeDescription
lenaanelenaaneAn array of values.
Removes and returns the last array value
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri mafelo = [60, 140, 220];
  diri x = tlosaYaBofelo(mafelo);
  thalaSediko(x, 110, 30);
  bogoloJwaMokwalo(20);
  thalaMokwalo(balaLenaane(mafelo), 60, 110);
  emisaPoapoeletso();
}

tsenyaMoLenaane, balaLenaane, tsaya