arrow-core / arrow.core / kotlin.collections.List

Extensions for kotlin.collections.List

foldRight fun <A, B> List<A>.foldRight(lb: Eval<B>, f: (A, Eval<B>) -> Eval<B>): Eval<B>
reduceRightEvalOrNull fun <A, B> List<A>.reduceRightEvalOrNull(initial: (A) -> B, operation: (A, acc: Eval<B>) -> Eval<B>): Eval<B?>
reduceRightNull fun <A, B> List<A>.reduceRightNull(initial: (A) -> B, operation: (A, acc: B) -> B): B?
widen fun <B, A : B> List<A>.widen(): List<B>

Do you like Arrow?

Arrow Org
<