Generate ranges, progressions and progressioniterators for UInt and ULong

This commit is contained in:
Ilya Gorbunov
2018-05-03 21:37:48 +03:00
parent 5c6719b1e6
commit f2c01a9d9b
8 changed files with 465 additions and 1 deletions
@@ -101,6 +101,9 @@ public inline class UByte internal constructor(private val data: Byte) : Compara
/** Decrements this value. */
public operator fun dec(): UByte = TODO()
/** Creates a range from this value to the specified [other] value. */
public operator fun rangeTo(other: UByte): UIntRange = UIntRange(this.toUInt(), other.toUInt())
/** Performs a bitwise AND operation between the two values. */
public infix fun and(other: UByte): UByte = UByte(this.data and other.data)
/** Performs a bitwise OR operation between the two values. */