align

infix fun <B> align(b: Option<B>): Option<Ior<A, B>>(source)

Align two options (this on the left and b on the right) as one Option of Ior.


inline fun <B, C> align(b: Option<B>, f: (Ior<A, B>) -> C): Option<C>(source)

Align two options (this on the left and b on the right) as one Option of Ior, and then, if it's not None, map it using f.