Hi, is there a nice kotlin collection function lik...
# announcements
m
Hi, is there a nice kotlin collection function like
filter()
, except it returns a list of the filtered items and a list of the unfiltered items? I need both lists
b
partition()
❤️ 2
m
thank you
s
or you
map{Pair(it, filter(it))}
(where filter is a method you define, not the one on
Iterable
)