Skip to content
ExamplesOpen editor ↗

tlosaMoLenaane

Removes values at an array index.

tlosaMoLenaane(lenaane, tshimologo, [palo])

Mutates the array by removing values at a zero-based start index. The default removal count is 1. Returns an array of the removed values. A count of 0 removes nothing. Negative starts count from the end; removal beyond the remaining length stops at the end. An out-of-range start returns an empty array. This removal interface does not insert replacement values.

NameTypeDescription
lenaanelenaaneAn array of values.
tshimologopaloZero-based start index; negative values count from the end.
palo (optional)paloNumber of values to remove; defaults to 1.
Removes values at an array index
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri mafelo = [60, 120, 180, 240];
  tlosaMoLenaane(mafelo, 1, 2);
  gopheta (diri x mo mafelo) {
    thalaSediko(x, 110, 24);
  }
  emisaPoapoeletso();
}

tsenyaMoLenaane, tlosaYaBofelo, kopololaKarolo