RosettaCodeData/Task/Multiple-distinct-objects/OCaml/multiple-distinct-objects-1.ml

4 lines
123 B
OCaml
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Array.make n (new foo);;
(* here (new foo) can be any expression that returns a new object,
record, array, or string *)