Is it possible in F# to pattern match directly against a let binding?
For example, this compiles without any warnings:
let value = match
just use capital letters and [] them and it works as expected.
[]
let [] X = 0 let [] Y = 1 let bla arg = match arg with | X -> "zero" | Y -> "one" | somethingelse -> somethingelse.ToString()
the lower case name by convention typically means a wildcard that is bound to the name.