Package kotlin. ranges
/docs/reference/ranges.html, Progressions and related top-level and extension functions.
/docs/reference/ranges.html, Progressions and related top-level and extension functions.
/docs/reference/ranges.html, Progressions and related top-level and extension functions.
/docs/reference/ranges.html, Progressions and related top-level and extension functions.
Types
A progression of values of type Char
.
A progression of values of type Char
.
A progression of values of type Char
.
A progression of values of type Char
.
A range of values of type Char
.
A range of values of type Char
.
A range of values of type Char
.
A range of values of type Char
.
Represents a range of floating point numbers. Extends ClosedRange interface providing custom operation lessThanOrEquals for comparing values of range domain type.
Since Kotlin
Represents a range of values (for example, numbers or characters). See the Kotlin language documentation for more information.
Represents a range of values (for example, numbers or characters). See the Kotlin language documentation for more information.
Represents a range of values (for example, numbers or characters). See the Kotlin language documentation for more information.
Represents a range of values (for example, numbers or characters). See the Kotlin language documentation for more information.
A progression of values of type Int
.
A progression of values of type Int
.
A progression of values of type Int
.
A progression of values of type Int
.
A range of values of type Int
.
A range of values of type Int
.
A range of values of type Int
.
A range of values of type Int
.
A progression of values of type Long
.
A progression of values of type Long
.
A progression of values of type Long
.
A progression of values of type Long
.
A range of values of type Long
.
A range of values of type Long
.
A range of values of type Long
.
A range of values of type Long
.
A progression of values of type UInt
.
Since Kotlin
A range of values of type UInt
.
Since Kotlin
A progression of values of type ULong
.
Since Kotlin
A range of values of type ULong
.
Since Kotlin
Functions
Ensures that this value is not less than the specified minimumValue.
Ensures that this value is not less than the specified minimumValue.
Since Kotlin
Ensures that this value is not greater than the specified maximumValue.
Ensures that this value is not greater than the specified maximumValue.
Since Kotlin
Ensures that this value lies in the specified range.
Since Kotlin
Ensures that this value lies in the specified range.
Ensures that this value lies in the specified range.
Since Kotlin
Ensures that this value lies in the specified range minimumValue..maximumValue.
Ensures that this value lies in the specified range minimumValue..maximumValue.
Since Kotlin
Returns true
if this iterable range contains the specified element.
Since Kotlin
Returns true
if this range contains the specified element.
Since Kotlin
Checks if the specified value belongs to this range.
Checks if the specified value belongs to this range.
Since Kotlin
Returns true
if this range contains the specified element.
Since Kotlin
Returns a random element from this range.
Since Kotlin
Returns a random element from this range.
Since Kotlin
Returns a random element from this range using the specified source of randomness.
Since Kotlin
Returns a random element from this range using the specified source of randomness.
Since Kotlin
Returns a random element from this range, or null
if this range is empty.
Since Kotlin
Returns a random element from this range, or null
if this range is empty.
Since Kotlin
Returns a random element from this range using the specified source of randomness, or null
if this range is empty.
Since Kotlin
Returns a random element from this range using the specified source of randomness, or null
if this range is empty.
Since Kotlin
Creates a range from this Comparable value to the specified that value.
Since Kotlin
Since Kotlin
Returns a progression that goes over the same range in the opposite direction with the same step.
Returns a progression that goes over the same range in the opposite direction with the same step.
Since Kotlin
Returns a progression that goes over the same range with the given step.
Returns a progression that goes over the same range with the given step.