rangeUntil

Creates a Boolean range from this value up to other, exclusive.

Ordering is false < true. false..<true contains only false. The range supports membership tests and empty checks, without iteration.

Receiver

the inclusive lower bound.

Return

a Boolean range; empty when the lower bound is at least other.

Parameters

other

the exclusive upper bound.


operator fun Float.rangeUntil(other: Float): OpenEndRange<Float>(source)

Creates a floating-point range from this value up to other, exclusive.

Membership uses IEEE comparisons. NaN is never contained; a NaN bound makes the range empty. Signed zeros compare as equal. The range does not support iteration.

Receiver

the inclusive lower bound.

Return

a range of Float values; empty when the lower bound is at least other, or either bound is NaN.

Parameters

other

the exclusive upper bound.


Creates a floating-point range from this value up to other, exclusive.

Membership uses IEEE comparisons. NaN is never contained; a NaN bound makes the range empty. Signed zeros compare as equal. The range does not support iteration.

Receiver

the inclusive lower bound.

Return

a range of Double values; empty when the lower bound is at least other, or either bound is NaN.

Parameters

other

the exclusive upper bound.


operator fun Byte.rangeUntil(other: Byte): IntRange(source)
operator fun Byte.rangeUntil(other: Short): IntRange(source)
operator fun Byte.rangeUntil(other: Int): IntRange(source)
operator fun Short.rangeUntil(other: Byte): IntRange(source)
operator fun Short.rangeUntil(other: Short): IntRange(source)
operator fun Short.rangeUntil(other: Int): IntRange(source)
operator fun Int.rangeUntil(other: Byte): IntRange(source)
operator fun Int.rangeUntil(other: Short): IntRange(source)
operator fun Int.rangeUntil(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.


operator fun Byte.rangeUntil(other: Long): LongRange(source)
operator fun Short.rangeUntil(other: Long): LongRange(source)
operator fun Int.rangeUntil(other: Long): LongRange(source)
operator fun Long.rangeUntil(other: Byte): LongRange(source)
operator fun Long.rangeUntil(other: Short): LongRange(source)
operator fun Long.rangeUntil(other: Int): LongRange(source)
operator fun Long.rangeUntil(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.


operator fun UByte.rangeUntil(other: UByte): UIntRange(source)
operator fun UByte.rangeUntil(other: UShort): UIntRange(source)
operator fun UByte.rangeUntil(other: UInt): UIntRange(source)
operator fun UShort.rangeUntil(other: UByte): UIntRange(source)
operator fun UShort.rangeUntil(other: UShort): UIntRange(source)
operator fun UShort.rangeUntil(other: UInt): UIntRange(source)
operator fun UInt.rangeUntil(other: UByte): UIntRange(source)
operator fun UInt.rangeUntil(other: UShort): UIntRange(source)
operator fun UInt.rangeUntil(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.


operator fun UByte.rangeUntil(other: ULong): ULongRange(source)
operator fun UShort.rangeUntil(other: ULong): ULongRange(source)
operator fun UInt.rangeUntil(other: ULong): ULongRange(source)
operator fun ULong.rangeUntil(other: UByte): ULongRange(source)
operator fun ULong.rangeUntil(other: UShort): ULongRange(source)
operator fun ULong.rangeUntil(other: UInt): ULongRange(source)
operator fun ULong.rangeUntil(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.


operator fun Char.rangeUntil(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.