sum-types
sum-types copied to clipboard
Match multiple branches
A limitation of our object-based matching API is that an equivalent to the following isn't possible:
case x of
A, B -> etc
C -> etc
switch (x) {
case A:
case B:
return etc;
case C:
return etc;
}