Hi, I am new to F# and fiddling just around with it. What get's me is:
let rec fact n =
match n with
| dummy when n < 2 -> 1
| _ -> n * fact (n - 1)
let x = 6
printfn "%d! = %d" x (fact x)
Why does F# needs this dummy placeholder between pipe and when? Dummy is even the whole time undefined and the compiler seems in some way to need and ignore it at the same time like a needed ghost symbol.
Thanks in advance.
Bye, Bernd