add

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

Adds the Array value to this value.

Example:

10 add arrayOf(1, 2, 3) // [11, 12, 13]

Since

1.1.0


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

Adds the number value to this Array.

Example:

arrayOf(1, 2, 3) add 10 // [11, 12, 13]

Since

1.1.0


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

Adds the Array value to this value.

Example:

10F add arrayOf(1F, 2F, 3F) // [11F, 12F, 13F]

Since

1.1.0


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

Adds the number value to this Array.

Example:

arrayOf(1F, 2F, 3F) add 10F // [11F, 12F, 13F]

Since

1.1.0


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

Adds the Array value to this value.

Example:

10.0 add arrayOf(1.0, 2.0, 3.0) // [11.0, 12.0, 13.0]

Since

1.1.0


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

Adds the number value to this Array.

Example:

arrayOf(1.0, 2.0, 3.0) add 10.0 // [11.0, 12.0, 13.0]

Since

1.1.0


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

Adds the Array value to this value.

Example:

10L add arrayOf(1L, 2L, 3L) // [11L, 12L, 13L]

Since

1.1.0


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

Adds the number value to this Array.

Example:

arrayOf(1L, 2L, 3L) add 10L // [11L, 12L, 13L]

Since

1.1.0


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

Adds the Iterable value to this value.

Example:

10 add listOf(1, 2, 3) // [11, 12, 13]

Since

1.1.0


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

Adds the number value to this Iterable.

Example:

listOf(1, 2, 3) add 10 // [11, 12, 13]

Since

1.1.0


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

Adds the Iterable value to this value.

Example:

10F add listOf(1F, 2F, 3F) // [11F, 12F, 13F]

Since

1.1.0


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

Adds the number value to this Iterable.

Example:

listOf(1F, 2F, 3F) add 10F // [11F, 12F, 13F]

Since

1.1.0


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

Adds the Iterable value to this value.

Example:

10.0 add listOf(1.0, 2.0, 3.0) // [11.0, 12.0, 13.0]

Since

1.1.0


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

Adds the number value to this Iterable.

Example:

listOf(1.0, 2.0, 3.0) add 10.0 // [11.0, 12.0, 13.0]

Since

1.1.0


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

Adds the Iterable value to this value.

Example:

10L add listOf(1L, 2L, 3L) // [11L, 12L, 13L]

Since

1.1.0


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

Adds the number value to this Iterable.

Example:

listOf(1L, 2L, 3L) add 10L // [11L, 12L, 13L]

Since

1.1.0