downTo

infix fun Char.downTo(other: Char): CharProgression(source)
infix fun Int.downTo(other: Int): IntProgression(source)
infix fun Long.downTo(other: Long): LongProgression(source)
infix fun UInt.downTo(other: UInt): UIntProgression(source)

Creates a descending progression from this value down to other, inclusive.

Receiver

the starting value.

Return

a progression with step minus one; empty when the start is below other.

Parameters

other

the inclusive lower bound.


infix fun Byte.downTo(other: Byte): IntProgression(source)
infix fun Byte.downTo(other: Short): IntProgression(source)
infix fun Byte.downTo(other: Int): IntProgression(source)
infix fun Short.downTo(other: Byte): IntProgression(source)
infix fun Short.downTo(other: Short): IntProgression(source)
infix fun Short.downTo(other: Int): IntProgression(source)
infix fun Int.downTo(other: Byte): IntProgression(source)
infix fun Int.downTo(other: Short): IntProgression(source)

Creates a descending progression from this value down to other, inclusive.

The bounds are widened to Int without changing their values.

Receiver

the inclusive starting value.

Return

a progression with step minus one, empty when the start is below other.

Parameters

other

the inclusive lower bound.


infix fun Byte.downTo(other: Long): LongProgression(source)
infix fun Short.downTo(other: Long): LongProgression(source)
infix fun Int.downTo(other: Long): LongProgression(source)
infix fun Long.downTo(other: Byte): LongProgression(source)
infix fun Long.downTo(other: Short): LongProgression(source)
infix fun Long.downTo(other: Int): LongProgression(source)

Creates a descending progression from this value down to other, inclusive.

The bounds are widened to Long without changing their values.

Receiver

the inclusive starting value.

Return

a progression with step minus one, empty when the start is below other.

Parameters

other

the inclusive lower bound.


infix fun UByte.downTo(other: UInt): UIntProgression(source)
infix fun UInt.downTo(other: UByte): UIntProgression(source)

Creates a descending progression from this value down to other, inclusive.

The bounds are widened to UInt without changing their values.

Receiver

the inclusive starting value.

Return

a progression with step minus one, empty when the start is below other.

Parameters

other

the inclusive lower bound.


Creates a descending progression from this value down to other, inclusive.

The bounds are widened to ULong without changing their values.

Receiver

the inclusive starting value.

Return

a progression with step minus one, empty when the start is below other.

Parameters

other

the inclusive lower bound.