Logo

Programming-Idioms

  • Scheme

Idiom #298 Copy a map

Create the map y by cloning the map x.

y is a shallow copy, not a deep copy.

var y = Map.of(x);

New implementation...