Deepcopy: Difference between revisions
Content added Content deleted
(added ocaml) |
|||
Line 331: | Line 331: | ||
=={{header|OCaml}}== |
=={{header|OCaml}}== |
||
This code is just provided in order to achieve this task, but an OCaml programmer wouldn't use this kind of code, because this <code>copy</code> function is made generic due to the use of the <code>Obj</code> module, |
This code is just provided in order to achieve this task, but an OCaml programmer wouldn't use this kind of code, because this <code>copy</code> function is made generic due to the use of the [http://caml.inria.fr/pub/docs/manual-ocaml/libref/Obj.html <code>Obj</code>] module, and it is not recommanded to use it. |
||
<lang ocaml>let rec copy t = |
<lang ocaml>let rec copy t = |