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