Companion

Functions

Link copied to clipboard
fun <A, B> bothNel(a: A, b: B): IorNel<A, B>
Link copied to clipboard
fun <A, B> fromNullables(a: A?, b: B?): Ior<A, B>?

Create an Ior from two nullables if at least one of them is defined.

Link copied to clipboard
fun <A, B> leftNel(a: A): IorNel<A, B>
Link copied to clipboard
fun <A, B, C> lift(f: (B) -> C): (Ior<A, B>) -> Ior<A, C>

Lifts a function (B) -> C to the Ior structure returning a polymorphic function that can be applied over all Ior values in the shape of Ior

fun <A, B, C, D> lift(fa: (A) -> C, fb: (B) -> D): (Ior<A, B>) -> Ior<C, D>