//arrow-core/arrow.core/Option/align

align

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

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

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

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.

Do you like Arrow?

Arrow Org
<