removeLast

fun <T> removeLast(list: MutableList<T>): T?