v1.7.0
  • Solutions
    • Multiplatform Mobile
    • Multiplatform for other platforms
    • Server-side
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.collections / java.util.Enumeration

Extensions for java.util.Enumeration

JVM
1.0

iterator

Creates an Iterator for an java.util.Enumeration, allowing to use it in for loops.

operator fun <T> Enumeration<T>.iterator(): Iterator<T>
JVM
1.0

toList

Returns a list containing the elements returned by this enumeration in the order they are returned by the enumeration.

fun <T> Enumeration<T>.toList(): List<T>
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains
esc