Documentation / kotlin-core / com.femastudios.kotlin.core / kotlin.collections.Iterable / filterToSet

filterToSet

inline fun <T> Iterable<T>.filterToSet(crossinline predicate: (T) -> Boolean): Set<T>

Returns a set containing only elements matching the given predicate.