pop

fun pop(): T?(source)

Removes and returns the top item, or null if empty.