swap
swap<
A,B>(data):These<B,A>
Defined in: Core/These.ts:291
Swaps the roles of first and second values.
- First(a) → Second(a)
- Second(b) → First(b)
- Both(a, b) → Both(b, a)
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”These<A, B>
Returns
Section titled “Returns”These<B, A>