Kotlin HashSet filterIndexedTo()
Syntax & Examples
Syntax of HashSet.filterIndexedTo()
The syntax of HashSet.filterIndexedTo() extension function is:
fun <T, C : MutableCollection<in T>> Iterable<T>.filterIndexedTo( destination: C, predicate: (index: Int, T) -> Boolean ): C
This filterIndexedTo() extension function of HashSet appends all elements matching the given predicate to the given destination.