Matching of tuples
- by Jack
From what I understood I can use pattern-matching in a match ... with expression with tuples of values, so something like
match b with
("<", val) -> if v < val then true else false
| ("<=", val) -> if v <= val then true else false
should be correct but it gives me a syntax error as if the parenthesis couldn't be used:
…