Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pattern matching to the Either type #62

Closed
DavidArno opened this issue Nov 29, 2018 · 1 comment
Closed

Add pattern matching to the Either type #62

DavidArno opened this issue Nov 29, 2018 · 1 comment

Comments

@DavidArno
Copy link
Owner

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:

  1. Case1 should be Left,
  2. Case2 should be Right,
  3. CaseOf<T> is not needed.
@DavidArno
Copy link
Owner Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant