Kotlin HashSet asSequence()
Syntax & Examples
Syntax of HashSet.asSequence()
The syntax of HashSet.asSequence() extension function is:
fun <T> Iterable<T>.asSequence(): Sequence<T>
This asSequence() extension function of HashSet creates a Sequence instance that wraps the original collection returning its elements when being iterated.