Transforms an Xor
into an XorT
, lifted into the specified Applicative
.
Transforms an Xor
into an XorT
, lifted into the specified Applicative
.
Note: The return type is a FromXorPartiallyApplied[F], which has an apply method on it, allowing you to call fromXor like this:
val t: Xor[String, Int] = ... val x: XorT[Option, String, Int] = fromXor[Option](t)
The reason for the indirection is to emulate currying type parameters.