plus

operator fun <T> Iterable<T>.plus(element: T): List<T>(source)
operator fun <T> Collection<T>.plus(element: T): List<T>(source)

Returns a list containing all elements of the original collection and then the given element.

Since Kotlin

1.0

operator fun <T> Iterable<T>.plus(elements: Array<out T>): List<T>(source)
operator fun <T> Collection<T>.plus(elements: Array<out T>): List<T>(source)

Returns a list containing all elements of the original collection and then all elements of the given elements array.

Since Kotlin

1.0

operator fun <T> Iterable<T>.plus(elements: Iterable<T>): List<T>(source)
operator fun <T> Collection<T>.plus(elements: Iterable<T>): List<T>(source)

Returns a list containing all elements of the original collection and then all elements of the given elements collection.

Since Kotlin

1.0

operator fun <T> Iterable<T>.plus(elements: Sequence<T>): List<T>(source)
operator fun <T> Collection<T>.plus(elements: Sequence<T>): List<T>(source)

Returns a list containing all elements of the original collection and then all elements of the given elements sequence.

Since Kotlin

1.0

operator fun <T> Set<T>.plus(element: T): Set<T>(source)

Returns a set containing all elements of the original set and then the given element if it isn't already in this set.

The returned set preserves the element iteration order of the original set.

Since Kotlin

1.0

operator fun <T> Set<T>.plus(elements: Array<out T>): Set<T>(source)

Returns a set containing all elements of the original set and the given elements array, which aren't already in this set.

The returned set preserves the element iteration order of the original set.

Since Kotlin

1.0

operator fun <T> Set<T>.plus(elements: Iterable<T>): Set<T>(source)

Returns a set containing all elements of the original set and the given elements collection, which aren't already in this set. The returned set preserves the element iteration order of the original set.

Since Kotlin

1.0

operator fun <T> Set<T>.plus(elements: Sequence<T>): Set<T>(source)

Returns a set containing all elements of the original set and the given elements sequence, which aren't already in this set.

The returned set preserves the element iteration order of the original set.

Since Kotlin

1.0

Returns an array containing all elements of the original array and then the given element.

Since Kotlin

1.3

Returns an array containing all elements of the original array and then all elements of the given elements collection.

Since Kotlin

1.3

Returns an array containing all elements of the original array and then all elements of the given elements array.

Since Kotlin

1.3

operator fun <K, V> Map<out K, V>.plus(pair: Pair<K, V>): Map<K, V>(source)

Creates a new read-only map by replacing or adding an entry to this map from a given key-value pair.

The returned map preserves the entry iteration order of the original map. The pair is iterated in the end if it has a unique key.

Since Kotlin

1.0

operator fun <K, V> Map<out K, V>.plus(pairs: Iterable<Pair<K, V>>): Map<K, V>(source)

Creates a new read-only map by replacing or adding entries to this map from a given collection of key-value pairs.

The returned map preserves the entry iteration order of the original map. Those pairs with unique keys are iterated in the end in the order of pairs collection.

Since Kotlin

1.0

operator fun <K, V> Map<out K, V>.plus(pairs: Array<out Pair<K, V>>): Map<K, V>(source)

Creates a new read-only map by replacing or adding entries to this map from a given array of key-value pairs.

The returned map preserves the entry iteration order of the original map. Those pairs with unique keys are iterated in the end in the order of pairs array.

Since Kotlin

1.0

operator fun <K, V> Map<out K, V>.plus(pairs: Sequence<Pair<K, V>>): Map<K, V>(source)

Creates a new read-only map by replacing or adding entries to this map from a given sequence of key-value pairs.

The returned map preserves the entry iteration order of the original map. Those pairs with unique keys are iterated in the end in the order of pairs sequence.

Since Kotlin

1.0

operator fun <K, V> Map<out K, V>.plus(map: Map<out K, V>): Map<K, V>(source)

Creates a new read-only map by replacing or adding entries to this map from another map.

The returned map preserves the entry iteration order of the original map. Those entries of another map that are missing in this map are iterated in the end in the order of that map.

Since Kotlin

1.0

expect operator fun <T> Array<T>.plus(element: T): Array<T>(source)
expect operator fun ByteArray.plus(element: Byte): ByteArray(source)
expect operator fun ShortArray.plus(element: Short): ShortArray(source)
expect operator fun IntArray.plus(element: Int): IntArray(source)
expect operator fun LongArray.plus(element: Long): LongArray(source)
expect operator fun FloatArray.plus(element: Float): FloatArray(source)
expect operator fun DoubleArray.plus(element: Double): DoubleArray(source)
expect operator fun BooleanArray.plus(element: Boolean): BooleanArray(source)
expect operator fun CharArray.plus(element: Char): CharArray(source)

Returns an array containing all elements of the original array and then the given element.

Since Kotlin

1.0

expect operator fun <T> Array<T>.plus(elements: Collection<T>): Array<T>(source)
expect operator fun ByteArray.plus(elements: Collection<Byte>): ByteArray(source)
expect operator fun ShortArray.plus(elements: Collection<Short>): ShortArray(source)
expect operator fun IntArray.plus(elements: Collection<Int>): IntArray(source)
expect operator fun LongArray.plus(elements: Collection<Long>): LongArray(source)
expect operator fun FloatArray.plus(elements: Collection<Float>): FloatArray(source)
expect operator fun DoubleArray.plus(elements: Collection<Double>): DoubleArray(source)
expect operator fun BooleanArray.plus(elements: Collection<Boolean>): BooleanArray(source)
expect operator fun CharArray.plus(elements: Collection<Char>): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements collection.

Since Kotlin

1.0

expect operator fun <T> Array<T>.plus(elements: Array<out T>): Array<T>(source)
expect operator fun ByteArray.plus(elements: ByteArray): ByteArray(source)
expect operator fun ShortArray.plus(elements: ShortArray): ShortArray(source)
expect operator fun IntArray.plus(elements: IntArray): IntArray(source)
expect operator fun LongArray.plus(elements: LongArray): LongArray(source)
expect operator fun FloatArray.plus(elements: FloatArray): FloatArray(source)
expect operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray(source)
expect operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray(source)
expect operator fun CharArray.plus(elements: CharArray): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements array.

Since Kotlin

1.0
actual inline operator fun <T> Array<T>.plus(element: T): Array<T>(source)
actual inline operator fun ByteArray.plus(element: Byte): ByteArray(source)
actual inline operator fun ShortArray.plus(element: Short): ShortArray(source)
actual inline operator fun IntArray.plus(element: Int): IntArray(source)
actual inline operator fun LongArray.plus(element: Long): LongArray(source)
actual inline operator fun FloatArray.plus(element: Float): FloatArray(source)
actual inline operator fun DoubleArray.plus(element: Double): DoubleArray(source)
actual inline operator fun BooleanArray.plus(element: Boolean): BooleanArray(source)
actual inline operator fun CharArray.plus(element: Char): CharArray(source)

Returns an array containing all elements of the original array and then the given element.

Since Kotlin

1.1

actual operator fun <T> Array<T>.plus(elements: Collection<T>): Array<T>(source)
actual operator fun ByteArray.plus(elements: Collection<Byte>): ByteArray(source)
actual operator fun ShortArray.plus(elements: Collection<Short>): ShortArray(source)
actual operator fun IntArray.plus(elements: Collection<Int>): IntArray(source)
actual operator fun LongArray.plus(elements: Collection<Long>): LongArray(source)
actual operator fun FloatArray.plus(elements: Collection<Float>): FloatArray(source)
actual operator fun DoubleArray.plus(elements: Collection<Double>): DoubleArray(source)
actual operator fun BooleanArray.plus(elements: Collection<Boolean>): BooleanArray(source)
actual operator fun CharArray.plus(elements: Collection<Char>): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements collection.

Since Kotlin

1.1

actual inline operator fun <T> Array<T>.plus(elements: Array<out T>): Array<T>(source)
actual inline operator fun ByteArray.plus(elements: ByteArray): ByteArray(source)
actual inline operator fun ShortArray.plus(elements: ShortArray): ShortArray(source)
actual inline operator fun IntArray.plus(elements: IntArray): IntArray(source)
actual inline operator fun LongArray.plus(elements: LongArray): LongArray(source)
actual inline operator fun FloatArray.plus(elements: FloatArray): FloatArray(source)
actual inline operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray(source)
actual inline operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray(source)
actual inline operator fun CharArray.plus(elements: CharArray): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements array.

Since Kotlin

1.1
actual operator fun <T> Array<T>.plus(element: T): Array<T>(source)
actual operator fun ByteArray.plus(element: Byte): ByteArray(source)
actual operator fun ShortArray.plus(element: Short): ShortArray(source)
actual operator fun IntArray.plus(element: Int): IntArray(source)
actual operator fun LongArray.plus(element: Long): LongArray(source)
actual operator fun FloatArray.plus(element: Float): FloatArray(source)
actual operator fun DoubleArray.plus(element: Double): DoubleArray(source)
actual operator fun BooleanArray.plus(element: Boolean): BooleanArray(source)
actual operator fun CharArray.plus(element: Char): CharArray(source)

Returns an array containing all elements of the original array and then the given element.

Since Kotlin

1.0

actual operator fun <T> Array<T>.plus(elements: Collection<T>): Array<T>(source)
actual operator fun ByteArray.plus(elements: Collection<Byte>): ByteArray(source)
actual operator fun ShortArray.plus(elements: Collection<Short>): ShortArray(source)
actual operator fun IntArray.plus(elements: Collection<Int>): IntArray(source)
actual operator fun LongArray.plus(elements: Collection<Long>): LongArray(source)
actual operator fun FloatArray.plus(elements: Collection<Float>): FloatArray(source)
actual operator fun DoubleArray.plus(elements: Collection<Double>): DoubleArray(source)
actual operator fun BooleanArray.plus(elements: Collection<Boolean>): BooleanArray(source)
actual operator fun CharArray.plus(elements: Collection<Char>): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements collection.

Since Kotlin

1.0

actual operator fun <T> Array<T>.plus(elements: Array<out T>): Array<T>(source)
actual operator fun ByteArray.plus(elements: ByteArray): ByteArray(source)
actual operator fun ShortArray.plus(elements: ShortArray): ShortArray(source)
actual operator fun IntArray.plus(elements: IntArray): IntArray(source)
actual operator fun LongArray.plus(elements: LongArray): LongArray(source)
actual operator fun FloatArray.plus(elements: FloatArray): FloatArray(source)
actual operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray(source)
actual operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray(source)
actual operator fun CharArray.plus(elements: CharArray): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements array.

Since Kotlin

1.0
actual operator fun <T> Array<T>.plus(element: T): Array<T>(source)
actual operator fun ByteArray.plus(element: Byte): ByteArray(source)
actual operator fun ShortArray.plus(element: Short): ShortArray(source)
actual operator fun IntArray.plus(element: Int): IntArray(source)
actual operator fun LongArray.plus(element: Long): LongArray(source)
actual operator fun FloatArray.plus(element: Float): FloatArray(source)
actual operator fun DoubleArray.plus(element: Double): DoubleArray(source)
actual operator fun BooleanArray.plus(element: Boolean): BooleanArray(source)
actual operator fun CharArray.plus(element: Char): CharArray(source)

Returns an array containing all elements of the original array and then the given element.

Since Kotlin

1.3

actual operator fun <T> Array<T>.plus(elements: Collection<T>): Array<T>(source)
actual operator fun ByteArray.plus(elements: Collection<Byte>): ByteArray(source)
actual operator fun ShortArray.plus(elements: Collection<Short>): ShortArray(source)
actual operator fun IntArray.plus(elements: Collection<Int>): IntArray(source)
actual operator fun LongArray.plus(elements: Collection<Long>): LongArray(source)
actual operator fun FloatArray.plus(elements: Collection<Float>): FloatArray(source)
actual operator fun DoubleArray.plus(elements: Collection<Double>): DoubleArray(source)
actual operator fun BooleanArray.plus(elements: Collection<Boolean>): BooleanArray(source)
actual operator fun CharArray.plus(elements: Collection<Char>): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements collection.

Since Kotlin

1.3

actual operator fun <T> Array<T>.plus(elements: Array<out T>): Array<T>(source)
actual operator fun ByteArray.plus(elements: ByteArray): ByteArray(source)
actual operator fun ShortArray.plus(elements: ShortArray): ShortArray(source)
actual operator fun IntArray.plus(elements: IntArray): IntArray(source)
actual operator fun LongArray.plus(elements: LongArray): LongArray(source)
actual operator fun FloatArray.plus(elements: FloatArray): FloatArray(source)
actual operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray(source)
actual operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray(source)
actual operator fun CharArray.plus(elements: CharArray): CharArray(source)

Returns an array containing all elements of the original array and then all elements of the given elements array.

Since Kotlin

1.3