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

dropLast

fun <T> Field<List<T>>.dropLast(n: Field<Int>): Field<List<T>>
fun <T> Field<List<T>>.dropLast(n: Int): Field<List<T>>

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

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

This is simply a convenience function.

See Also

kotlin.collections.dropLast


fun Field<String>.dropLast(n: Field<Int>): Field<String>
fun Field<String>.dropLast(n: Int): Field<String>

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

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

This is simply a convenience function.

See Also

kotlin.text.dropLast