filterToSet

fun <T> Collection<T>.filterToSet(predicate: (T) -> Boolean): Set<T>(source)