W3cubDocs

/Kotlin

asSequence

inline fun <T> Enumeration<T>.asSequence(): Sequence<T>

Platform and version requirements: JVM

Creates a sequence that returns all values from this enumeration. The sequence is constrained to be iterated only once.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/java.util.-enumeration/as-sequence.html