W3cubDocs

/Kotlin

fromClosedRange

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
fun fromClosedRange(
    rangeStart: UInt, 
    rangeEnd: UInt, 
    step: Int
): UIntProgression

Creates UIntProgression 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.

step must be greater than Int.MIN_VALUE and not equal to zero.

© 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.ranges/-u-int-progression/from-closed-range.html