mathew murphy
07/18/2019, 9:06 PMkarelpeeters
07/18/2019, 9:08 PMset.filterTo(mutableSetOf()) { ... }
Casey Brooks
07/18/2019, 9:08 PM.filter
is defined on Iterable
. There aren’t specific overrides for each Collection typemathew murphy
07/18/2019, 9:11 PMkarelpeeters
07/18/2019, 9:12 PMmathew murphy
07/18/2019, 9:25 PMkarelpeeters
07/18/2019, 9:25 PM==
does that.mathew murphy
07/18/2019, 9:34 PMLS
07/18/2019, 9:38 PMset.asSequence().filter(predicate).toSet()
set.asSequence().filter(predicate).toMutableSet()
set.asSequence().filter(predicate).toSortedSet()