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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
lenaane | lenaane | An array of values. |
Examples
Section titled “Examples”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();
}