![]() In other words, a range is an interval from the start value to the end value. Both the start and end values belong to the range too. That is, a range of 1 as the start value and 5 as the end value. A simple example would be, the values between 1 and 5 form a range. Package kotlin.ranges /** * A range of values of type `Char`. A range is a collection of values determined by a start and stop value. ![]() IntRange(start: Int, endInclusive: Int) Properties Common JVM JS Native 1. Constructors Common JVM JS Native 1.0 A range of values of type Int. ClosedRange is further extended by CharRange, IntRange and LongRange which provides the functionality of Iterable also along with closed range which is used by for loops. kotlin-stdlib / kotlin.ranges / IntRange IntRange Common JVM JS Native 1.0 class IntRange : IntProgression, ClosedRange, OpenEndRange (source) A range of values of type Int.
0 Comments
Leave a Reply. |