array.pop

Removes the last element and returns it. Runtime error on an empty array.

array.pop(id: array<any>) -> element type

Parameters

Example

newest = a.pop()