What is best and optimal way to remove all elements but not first element in kotlin mutable list ?
c
What is best and optimal way to remove all elements but not first element in kotlin mutable list ?
e
.subList(1).clear()
1
👍🏻 1
👍 2
❤️ 4