Kotlin HashSet filterIndexed()
Syntax & Examples
Syntax of HashSet.filterIndexed()
The syntax of HashSet.filterIndexed() extension function is:
fun <T> Iterable<T>.filterIndexed( predicate: (index: Int, T) -> Boolean ): List<T>
This filterIndexed() extension function of HashSet returns a list containing only elements matching the given predicate.