Contents

Roo

Array.pop

An array can be used as a simple stack. This getter removes the object from the array with the highest index and returns it. If the array is empty then Nothing is returned.

var a = ["a", "b", "c"]
print(a.pop) # => "c"
print(a) # => ["a", "b"]