Closed DavidArno closed 4 years ago
The Either<TLeft, TRight> type doesn't currently support pattern matching.
Either<TLeft, TRight>
Add pattern matching support, along the lines of what's available for Union<T1, T2>, except that:
Union<T1, T2>
Case1
Left
Case2
Right
CaseOf<T>
Done.
The
Either<TLeft, TRight>
type doesn't currently support pattern matching.Add pattern matching support, along the lines of what's available for
Union<T1, T2>
, except that:Case1
should beLeft
,Case2
should beRight
,CaseOf<T>
is not needed.