Better way to do `dropLast(n)` on a `MutableList` ...
# codereview
r
Better way to do
dropLast(n)
on a
MutableList
via mutation rather than copy?
Copy code
repeat(n) {
    removeAt(list.size - 1)
  }