sub

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

Subtracts the array from this value.

Example:

10 sub arrayOf(1, 2, 3) // [9, 8, 7]

Since

1.1.0


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

Subtracts the number from this Array.

Example:

arrayOf(1, 2, 3) sub 10 // [-9, -8, -7]

Since

1.1.0


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

Subtracts the array from this value.

Example:

10F sub arrayOf(1F, 2F, 3F) // [9F, 8F, 7F]

Since

1.1.0


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

Subtracts the number from this Array.

Example:

arrayOf(1F, 2F, 3F) sub 10F // [-9F, -8F, -7F]

Since

1.1.0


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

Subtracts the array from this value.

Example:

10.0 sub arrayOf(1.0, 2.0, 3.0) // [9.0, 8.0, 7.0]

Since

1.1.0


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

Subtracts the number from this Array.

Example:

arrayOf(1.0, 2.0, 3.0) sub 10.0 // [-9.0, -8.0, -7.0]

Since

1.1.0


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

Subtracts the array from this value.

Example:

10L sub arrayOf(1L, 2L, 3L) // [9L, 8L, 7L]

Since

1.1.0


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

Subtracts the number from this Array.

Example:

arrayOf(1L, 2L, 3L) sub 10L // [-9L, -8L, -7L]

Since

1.1.0


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

Subtracts the iterable from this value.

Example:

10 sub listOf(1, 2, 3) // [9, 8, 7]

Since

1.1.0


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

Subtracts the number from this Iterable.

Example:

listOf(1, 2, 3) sub 10 // [-9, -8, -7]

Since

1.1.0


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

Subtracts the iterable from this value.

Example:

10F sub listOf(1F, 2F, 3F) // [9F, 8F, 7F]

Since

1.1.0


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

Subtracts the number from this Iterable.

Example:

listOf(1F, 2F, 3F) sub 10F // [-9F, -8F, -7F]

Since

1.1.0


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

Subtracts the iterable from this value.

Example:

10.0 sub listOf(1.0, 2.0, 3.0) // [9.0, 8.0, 7.0]

Since

1.1.0


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

Subtracts the number from this Iterable.

Example:

listOf(1.0, 2.0, 3.0) sub 10.0 // [-9.0, -8.0, -7.0]

Since

1.1.0


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

Subtracts the iterable from this value.

Example:

10L sub listOf(1L, 2L, 3L) // [9L, 8L, 7L]

Since

1.1.0


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

Subtracts the number from this Iterable.

Example:

listOf(1L, 2L, 3L) sub 10L // [-9L, -8L, -7L]

Since

1.1.0