Tips for golfing in OCaml Inspired from the assortment of other 'Tips for golfing in language xyz'. As usual, please only suggest tips that are specific to OCaml and not programming in general. One tip per answer please.
Use functions instead of match

let rec f=function[]-&gt;0|_::t-&gt;1+f t


is shorter than

let rec f x=match x with[]-&gt;0|_::t-&gt;1+f t