Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Byte / rangeTo
Go to reference

rangeTo

@JvmName("rangeToInt") operator fun Byte.rangeTo(other: Attribute<Int>): Attribute<IntRange>
@JvmName("rangeToLong") operator fun Byte.rangeTo(other: Attribute<Long>): Attribute<LongRange>
@JvmName("rangeToShort") operator fun Byte.rangeTo(other: Attribute<Short>): Attribute<IntRange>
operator fun Byte.rangeTo(other: Attribute<Byte>): Attribute<IntRange>

Same as rangeTo, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling rangeTo in the transformation function.

This is simply a convenience function.

See Also

kotlin.Byte.rangeTo