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

chunkedSequence

fun <R> Field<String>.chunkedSequence(size: Field<Int>, transform: (CharSequence) -> R): Field<Sequence<R>>
fun <R> Field<String>.chunkedSequence(size: Int, transform: (CharSequence) -> R): Field<Sequence<R>>
fun Field<String>.chunkedSequence(size: Field<Int>): Field<Sequence<String>>
fun Field<String>.chunkedSequence(size: Int): Field<Sequence<String>>

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

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

This is simply a convenience function.

See Also

kotlin.text.chunkedSequence