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

chunkedSequence

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

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

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