Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
var y = Map.of(x);
y := make(map[K]V, len(x))
for k, v := range x {
y[k] = v
}
my %y = %x;
y = x.copy()
y = x.dup