RosettaCodeData/Task/Higher-order-functions/OCaml/higher-order-functions-2.ocaml

7 lines
135 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
# let func f = f 1 2;;
val func : (int -> int -> 'a) -> 'a = <fun>
# Printf.printf "%d\n" (func (fun x y -> x + y));;
3
- : unit = ()