Documentation / dataflow / com.femastudios.dataflow.extensions / kotlin.collections.Collection / plus
Go to reference


@JvmName("plusArray") operator fun <T> Collection<T>.plus(elements: Field<Array<out T>>): Field<List<T>>
@JvmName("plusElement") operator fun <T> Collection<T>.plus(element: Field<T>): Field<List<T>>
@JvmName("plusIterable") operator fun <T> Collection<T>.plus(elements: Field<Iterable<T>>): Field<List<T>>
@JvmName("plusSequence") operator fun <T> Collection<T>.plus(elements: Field<Sequence<T>>): Field<List<T>>

Same as plus, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling plus in the transformation function.

This is simply a convenience function.

See Also