RosettaCodeData/Task/Multiple-distinct-objects/OCaml/multiple-distinct-objects-1.ocaml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

3 lines
123 B
Text

Array.make n (new foo);;
(* here (new foo) can be any expression that returns a new object,
record, array, or string *)