Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / foldRight
Go to reference
Go to reference
foldRight
fun <T, R> Attribute<List<T>>.foldRight(initial: R, operation: (T, acc: R) -> R): Attribute<R>
fun <T, R> Attribute<List<T>>.foldRight(initial: Attribute<R>, operation: (T, acc: R) -> R): Attribute<R>
Same as foldRight, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling foldRight in the transformation function.
This is simply a convenience function.
See Also
fun <R> Attribute<String>.foldRight(initial: R, operation: (Char, acc: R) -> R): Attribute<R>
fun <R> Attribute<String>.foldRight(initial: Attribute<R>, operation: (Char, acc: R) -> R): Attribute<R>
Same as foldRight, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling foldRight in the transformation function.
This is simply a convenience function.
See Also