unsplash / sum-types

Safe, ergonomic, non-generic sum types in TypeScript.
https://unsplash.github.io/sum-types/
MIT License
42 stars 2 forks source link

Match multiple sums together #29

Open samhh opened 2 years ago

samhh commented 2 years ago

The equivalent of matching tuples in Haskell:

case (x, y) of
  (A, B) -> etc
  otherwise -> etc

Potentially relevant/blocker: #15