Shallowclone

trait~ Shallowclone

Source:

Shal­lowly clone an ob­ject.

In­ter­face

(x: The­Value) => r: The­Value

Laws

  • x !== r
  • get(r, k) === get(x, k) for any k.

Im­ple­ment­a­tion Notes

No-Op im­ple­ment­a­tions are provided for read only prim­it­ive types.