clone returns a shallow copy of m.
()
| 720 | |
| 721 | // clone returns a shallow copy of m. |
| 722 | func (m *Map[K, V]) clone() *Map[K, V] { |
| 723 | other := *m |
| 724 | return &other |
| 725 | } |
| 726 | |
| 727 | // Get returns the value for a given key and a flag indicating whether the |
| 728 | // key exists. This flag distinguishes a nil value set on a key versus a |