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

rangeTo

@JvmName("rangeToByte") operator fun Short.rangeTo(other: Attribute<Byte>): Attribute<IntRange>
@JvmName("rangeToInt") operator fun Short.rangeTo(other: Attribute<Int>): Attribute<IntRange>
@JvmName("rangeToLong") operator fun Short.rangeTo(other: Attribute<Long>): Attribute<LongRange>
operator fun Short.rangeTo(other: Attribute<Short>): 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.Short.rangeTo