removeLastOrNull

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi fun <T> MutableList<T>.removeLastOrNull(): T?

Removes the last element from this mutable list and returns that removed element, or returns null if this list is empty.