Methods

popΒΆ

pop(arr:Arr)

Pop item from an array. Removes last item in array and returns it. Throws EmptyArrayFail.

Returns

Any

Example

a=[1,2]; a.pop()  # 2, a is now [1]