https://kotlinlang.org logo
r

robin

02/16/2017, 11:06 AM
In that form it will make a new list, but I think if you insert a
toSequence()
call behind
values
it will lazily do the filtering without duplicating the list.