You can use Sequence<T> to avoid allocating ...
# getting-started
d
You can use Sequence<T> to avoid allocating additional lists. Also note that
MutableList<T>.sort()
performs in-place sort