Documentation / dataflow / com.femastudios.dataflow.extensions / first
Go to reference

first

fun Field<CharProgression>.first(): Field<Char>

Same as first, but returns a new Field

See Also

kotlin.ranges.CharProgression.first


fun Field<IntProgression>.first(): Field<Int>

Same as first, but returns a new Field

See Also

kotlin.ranges.IntProgression.first


fun <T> Field<Iterable<T>>.first(): Field<T>
fun <T> Field<Iterable<T>>.first(predicate: (T) -> Boolean): Field<T>
fun <T> Field<List<T>>.first(): Field<T>

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

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

This is simply a convenience function.

See Also

kotlin.collections.first


fun Field<LongProgression>.first(): Field<Long>

Same as first, but returns a new Field

See Also

kotlin.ranges.LongProgression.first


fun <A> Field<Pair<A, *>>.first(): Field<A>

Same as first, but returns a new Field

See Also

kotlin.Pair.first


fun <T> Field<Sequence<T>>.first(): Field<T>
fun <T> Field<Sequence<T>>.first(predicate: (T) -> Boolean): Field<T>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.first


fun Field<String>.first(): Field<Char>
fun Field<String>.first(predicate: (Char) -> Boolean): Field<Char>

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

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

This is simply a convenience function.

See Also

kotlin.text.first


fun <A> Field<Triple<A, *, *>>.first(): Field<A>

Same as first, but returns a new Field

See Also

kotlin.Triple.first


fun <A, B> MutableField<Pair<A, B>>.first(): MutableField<A>

Returns a MutableField that represents the first item of the pair contained in this MutableField. When changing the value of the returned field, a new pair will be created and set on this field.