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

dropLast

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

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

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 Attribute<String>.dropLast(n: Attribute<Int>): Attribute<String>
fun Attribute<String>.dropLast(n: Int): Attribute<String>

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

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