Array.popBack

Deletes the last element from the array. The array will be truncated. If the array is already empty, an error will occur.

Arguments

None

Return values

None

Complexity

Constant

Example

"sl/array" useFile a: (1 2 0 5 "Hello" 0.3) makeArray; a [print "," print TRUE] enum a.popBack LF print a [print "," print TRUE] enum
Output:
1,2,0,5,Hello,0.300000, 1,2,0,5,Hello,