rem

infix inline fun <T : Number> Int.rem(array: Array<T>): IntArray

Calculates the remainder of truncating division of this value by the array.

Example:

10 rem arrayOf(1, 2, 3) // [0, 0, 1]

Since

1.1.0


infix inline fun <T : Number> Array<T>.rem(number: Int): IntArray

Calculates the remainder of truncating division of this Array by the number.

Example:

arrayOf(1, 2, 3) rem 10 // [1, 2, 3]

Since

1.1.0


infix inline fun <T : Number> Float.rem(array: Array<T>): FloatArray

Calculates the remainder of truncating division of this value by the array.

Example:

10F rem arrayOf(1F, 2F, 3F) // [0F, 0F, 1F]

Since

1.1.0


infix inline fun <T : Number> Array<T>.rem(number: Float): FloatArray

Calculates the remainder of truncating division of this Array by the number.

Example:

arrayOf(1F, 2F, 3F) rem 10F // [1F, 2F, 3F]

Since

1.1.0


infix inline fun <T : Number> Double.rem(array: Array<T>): DoubleArray

Calculates the remainder of truncating division of this value by the array.

Example:

10.0 rem arrayOf(1.0, 2.0, 3.0) // [0.0, 0.0, 1.0]

Since

1.1.0


infix inline fun <T : Number> Array<T>.rem(number: Double): DoubleArray

Calculates the remainder of truncating division of this Array by the number.

Example:

arrayOf(1.0, 2.0, 3.0) rem 10.0 // [1.0, 2.0, 3.0]

Since

1.1.0


infix inline fun <T : Number> Long.rem(array: Array<T>): LongArray

Calculates the remainder of truncating division of this value by the array.

Example:

10L rem arrayOf(1L, 2L, 3L) // [0L, 0L, 1L]

Since

1.1.0


infix inline fun <T : Number> Array<T>.rem(number: Long): LongArray

Calculates the remainder of truncating division of this Array by the number.

Example:

arrayOf(1L, 2L, 3L) rem 10L // [1L, 2L, 3L]

Since

1.1.0


infix inline fun <T : Number> Int.rem(iterable: Iterable<T>): Iterable<Int>

Calculates the remainder of truncating division of this value by the iterable.

Example:

10 rem listOf(1, 2, 3) // [0, 0, 1]

Since

1.1.0


infix inline fun <T : Number> Iterable<T>.rem(number: Int): Iterable<Int>

Calculates the remainder of truncating division of this Iterable by the number.

Example:

listOf(1, 2, 3) rem 10 // [1, 2, 3]

Since

1.1.0


infix inline fun <T : Number> Float.rem(iterable: Iterable<T>): Iterable<Float>

Calculates the remainder of truncating division of this value by the iterable.

Example:

10F rem listOf(1F, 2F, 3F) // [0F, 0F, 1F]

Since

1.1.0


infix inline fun <T : Number> Iterable<T>.rem(number: Float): Iterable<Float>

Calculates the remainder of truncating division of this Iterable by the number.

Example:

listOf(1F, 2F, 3F) rem 10F // [1F, 2F, 3F]

Since

1.1.0


infix inline fun <T : Number> Double.rem(iterable: Iterable<T>): Iterable<Double>

Calculates the remainder of truncating division of this value by the iterable.

Example:

10.0 rem listOf(1.0, 2.0, 3.0) // [0.0, 0.0, 1.0]

Since

1.1.0


infix inline fun <T : Number> Iterable<T>.rem(number: Double): Iterable<Double>

Calculates the remainder of truncating division of this Iterable by the number.

Example:

listOf(1.0, 2.0, 3.0) rem 10.0 // [1.0, 2.0, 3.0]

Since

1.1.0


infix inline fun <T : Number> Long.rem(iterable: Iterable<T>): Iterable<Long>

Calculates the remainder of truncating division of this value by the iterable.

Example:

10L rem listOf(1L, 2L, 3L) // [0L, 0L, 1L]

Since

1.1.0


infix inline fun <T : Number> Iterable<T>.rem(number: Long): Iterable<Long>

Calculates the remainder of truncating division of this Iterable by the number.

Example:

listOf(1L, 2L, 3L) rem 10L // [1L, 2L, 3L]

Since

1.1.0