div

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

Divides this value by the array.

Example:

10 div arrayOf(1, 2, 3) // [10, 5, 3]

Since

1.1.0


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

Divides this Array by the number.

Example:

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

Since

1.1.0


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

Divides this value by the array.

Example:

10F div arrayOf(1F, 2F, 3F) // [10F, 5F, 3.33F]

Since

1.1.0


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

Divides this Array by the number.

Example:

arrayOf(1F, 2F, 3F) div 10F // [0.1F, 0.2F, 0.3F]

Since

1.1.0


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

Divides this value by the array.

Example:

10.0 div arrayOf(1.0, 2.0, 3.0) // [10.0, 5.0, 3.33]

Since

1.1.0


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

Divides this Array by the number.

Example:

arrayOf(1.0, 2.0, 3.0) div 10.0 // [0.1, 0.2, 0.3]

Since

1.1.0


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

Divides this value by the array.

Example:

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

Since

1.1.0


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

Divides this Array by the number.

Example:

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

Since

1.1.0


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

Divides this value by the iterable.

Example:

10 div listOf(1, 2, 3) // [10, 5, 3]

Since

1.1.0


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

Divides this Iterable by the number.

Example:

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

Since

1.1.0


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

Divides this value by the iterable.

Example:

10F div listOf(1F, 2F, 3F) // [10F, 5F, 3.33F]

Since

1.1.0


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

Divides this Iterable by the number.

Example:

listOf(1F, 2F, 3F) div 10F // [0.1F, 0.2F, 0.3F]

Since

1.1.0


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

Divides this value by the iterable.

Example:

10.0 div listOf(1.0, 2.0, 3.0) // [10.0, 5.0, 3.33]

Since

1.1.0


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

Divides this Iterable by the number.

Example:

listOf(1.0, 2.0, 3.0) div 10.0 // [0.1, 0.2, 0.3]

Since

1.1.0


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

Divides this value by the iterable.

Example:

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

Since

1.1.0


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

Divides this Iterable by the number.

Example:

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

Since

1.1.0