What is the equivalent of the OCaml:
match x with
| 'a'..'k' -> 1
...
in F#?
(short of | 'a' | 'b' | 'c' ... :)
You can use a match guard to add a condition:
match x with
| t when t >= 'a' && t <= 'k' -> 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With