W3cubDocs

/Kotlin

fromClosedRange

fun fromClosedRange(
    rangeStart: Char, 
    rangeEnd: Char, 
    step: Int
): CharProgression

Creates CharProgression within the specified bounds of a closed range.

The progression starts with the rangeStart value and goes toward the rangeEnd value not excluding it, with the specified step. In order to go backwards the step must be negative.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-char-progression/from-closed-range.html