See documents in template matching syntax . function- shorthand syntax for accepting a single argument and immediately matching the pattern:
let foo x =
match x with
| CaseA -> 1
| CaseB -> 2
Is the equivalent
let foo = function
| CaseA -> 1
| CaseB -> 2
, function , , . , :
let foo x y = function
| CaseA -> x + y
| CaseB -> x - y
let foo x y z =
match z with
| CaseA -> x + y
| CaseB -> x - y
Edit:
( ) [l], , . , , , l. . " " .