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

findLast

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

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

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

This is simply a convenience function.

See Also

kotlin.collections.findLast


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

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

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

This is simply a convenience function.

See Also

kotlin.sequences.findLast


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

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

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

This is simply a convenience function.

See Also

kotlin.text.findLast