until

infix fun Byte.until(other: Byte): IntRange(source)
infix fun Byte.until(other: Short): IntRange(source)
infix fun Byte.until(other: Int): IntRange(source)
infix fun Short.until(other: Byte): IntRange(source)
infix fun Short.until(other: Short): IntRange(source)
infix fun Short.until(other: Int): IntRange(source)
infix fun Int.until(other: Byte): IntRange(source)
infix fun Int.until(other: Short): IntRange(source)
infix fun Int.until(other: Int): IntRange(source)

Creates an ascending range from this value up to other, exclusive.

The bounds are widened to Int without changing their values.

An exclusive bound at the minimum value representable by the result element type produces an empty range without subtracting past that minimum.

Receiver

the inclusive starting value.

Return

a range with step one, empty when the start is at least other.

Parameters

other

the exclusive upper bound.


infix fun Byte.until(other: Long): LongRange(source)
infix fun Short.until(other: Long): LongRange(source)
infix fun Int.until(other: Long): LongRange(source)
infix fun Long.until(other: Byte): LongRange(source)
infix fun Long.until(other: Short): LongRange(source)
infix fun Long.until(other: Int): LongRange(source)
infix fun Long.until(other: Long): LongRange(source)

Creates an ascending range from this value up to other, exclusive.

The bounds are widened to Long without changing their values.

An exclusive bound at the minimum value representable by the result element type produces an empty range without subtracting past that minimum.

Receiver

the inclusive starting value.

Return

a range with step one, empty when the start is at least other.

Parameters

other

the exclusive upper bound.


infix fun UByte.until(other: UByte): UIntRange(source)
infix fun UByte.until(other: UShort): UIntRange(source)
infix fun UByte.until(other: UInt): UIntRange(source)
infix fun UShort.until(other: UByte): UIntRange(source)
infix fun UShort.until(other: UShort): UIntRange(source)
infix fun UShort.until(other: UInt): UIntRange(source)
infix fun UInt.until(other: UByte): UIntRange(source)
infix fun UInt.until(other: UShort): UIntRange(source)
infix fun UInt.until(other: UInt): UIntRange(source)

Creates an ascending range from this value up to other, exclusive.

The bounds are widened to UInt without changing their values.

An exclusive bound at the minimum value representable by the result element type produces an empty range without subtracting past that minimum.

Receiver

the inclusive starting value.

Return

a range with step one, empty when the start is at least other.

Parameters

other

the exclusive upper bound.


infix fun UByte.until(other: ULong): ULongRange(source)
infix fun UShort.until(other: ULong): ULongRange(source)
infix fun UInt.until(other: ULong): ULongRange(source)
infix fun ULong.until(other: UByte): ULongRange(source)
infix fun ULong.until(other: UShort): ULongRange(source)
infix fun ULong.until(other: UInt): ULongRange(source)
infix fun ULong.until(other: ULong): ULongRange(source)

Creates an ascending range from this value up to other, exclusive.

The bounds are widened to ULong without changing their values.

An exclusive bound at the minimum value representable by the result element type produces an empty range without subtracting past that minimum.

Receiver

the inclusive starting value.

Return

a range with step one, empty when the start is at least other.

Parameters

other

the exclusive upper bound.


infix fun Char.until(other: Char): CharRange(source)

Creates an ascending range from this value up to other, exclusive.

An exclusive bound at the minimum value representable by the result element type produces an empty range without subtracting past that minimum.

Receiver

the inclusive starting value.

Return

a range with step one, empty when the start is at least other.

Parameters

other

the exclusive upper bound.