Match against non-literal values
I in Ocaml (reasonml), I'm able to to match against integer values like,
switch (x) {
| 0 | 1 => "small"
| _ => "large"
}
However, say I now switch my number type to something like Zarith. How do I match against values, like in the above?
Is there a nicer way other than using | x when x == SomeNumberModule.of_int(0) || x == SomeNumberModule.of_int(1) => ...
?