OCaml Tricks: Matching with Curry
12 May 2013
f = function… is a shortcut of f x = match x. For instance, (* Find the k'th element of a list. *) let rec at k = function |...
12 May 2013
f = function… is a shortcut of f x = match x. For instance, (* Find the k'th element of a list. *) let rec at k = function |...