Logo

Programming-Idioms

  • Haskell

Idiom #311 Deep copy an object

Create the new object y by cloning the all the contents of x, recursively.

let y = structuredClone(x);

New implementation...
< >
programming-idioms.org