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

findLast

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

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

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> Attribute<Sequence<T>>.findLast(predicate: (T) -> Boolean): Attribute<T?>

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

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 Attribute<String>.findLast(predicate: (Char) -> Boolean): Attribute<Char?>

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

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