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

6 lines
122 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
module MakeFoodBox(A : Eatable) = struct
type elt = A.t
type t = F of elt list
let make_box_from_list xs = F xs
end