swap
swap<
E,A>(data):These<A,E>
Defined in: Core/These.ts:248
Swaps the roles of error and success values.
- Err(e) → Ok(e)
- Ok(a) → Err(a)
- Both(e, a) → Both(a, e)
Type Parameters
Section titled “Type Parameters”E
A
Parameters
Section titled “Parameters”These<E, A>
Returns
Section titled “Returns”These<A, E>