arrow-core-data / arrow.core / Ior / fromOptions
fun <A, B> ~~fromOptions~~(oa:
Option
<A>, ob:
Option
<B>):
Option
<
Ior
<A, B>>
Deprecated: Deprecated, use fromNullables
instead
Create an Ior from two Options if at least one of them is defined.
oa
- an element (optional) for the left side of the Ior
ob
- an element (optional) for the right side of the Ior
Return None if both oa and ob are None. Otherwise Some wrapping an Ior.Left, Ior.Right, or Ior.Both if oa, ob, or both are defined (respectively).
Do you like Arrow?
✖