operator fun <T> Sequence<T>.plus(element: T): Sequence<T>
Returns a sequence containing all elements of the original sequence and then the given element.
The operation is intermediate and stateless.
operator fun <T> Sequence<T>.plus( elements: Array<out T> ): Sequence<T>
Returns a sequence containing all elements of original sequence and then all elements of the given elements array.
Note that the source sequence and the array being added are iterated only when an iterator
is requested from the resulting sequence. Changing any of them between successive calls to iterator
may affect the result.
The operation is intermediate and stateless.
operator fun <T> Sequence<T>.plus( elements: Iterable<T> ): Sequence<T>
Returns a sequence containing all elements of original sequence and then all elements of the given elements collection.
Note that the source sequence and the collection being added are iterated only when an iterator
is requested from the resulting sequence. Changing any of them between successive calls to iterator
may affect the result.
The operation is intermediate and stateless.
operator fun <T> Sequence<T>.plus( elements: Sequence<T> ): Sequence<T>
Returns a sequence containing all elements of original sequence and then all elements of the given elements sequence.
Note that the source sequence and the sequence being added are iterated only when an iterator
is requested from the resulting sequence. Changing any of them between successive calls to iterator
may affect the result.
The operation is intermediate and stateless.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/plus.html