How about `myList.last`?
# language-proposals
c
How about
myList.last
?
p
Something like this? 🙂
Copy code
var <T> MutableList<T>.last
    get() = this[lastIndex]
    set(value) { this[lastIndex] = value }