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

dropLastWhile

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

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

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

This is simply a convenience function.

See Also

kotlin.collections.dropLastWhile


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

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

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

This is simply a convenience function.

See Also

kotlin.text.dropLastWhile