the second implementation is probably good enough ...
# stdlib
k
the second implementation is probably good enough for
MutableList
, too. It's not a lot less efficient, since
indexOfFirst
needs to allocate an
IntRange
, too