Kotlin HashSet asIterable()
Syntax & Examples


Syntax of HashSet.asIterable()

The syntax of HashSet.asIterable() extension function is:

fun <T> Iterable<T>.asIterable(): Iterable<T>

This asIterable() extension function of HashSet returns this collection as an Iterable.