align

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

Deprecated

This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using a simple fold, or when expression

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>

Deprecated

This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using a simple fold, or when expression

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.