RosettaCodeData/Task/Constrained-genericity/OCaml/constrained-genericity-4.ocaml

5 lines
126 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
module EatFloat : Eatable with type t = float = struct
type t = float
let eat f = Printf.printf "I'm eating %f\n%!" f
end