W3cubDocs

/Kotlin

Extensions for java.util.Enumeration

Platform and version requirements: JVM (1.0)

asSequence

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

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

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/java.util.-enumeration/index.html