(other *Map)
| 44 | } |
| 45 | |
| 46 | func (m *Map) Equal(other *Map) bool { |
| 47 | if m.Len() != other.Len() { |
| 48 | return false |
| 49 | } |
| 50 | |
| 51 | for i, k := range m.keys { |
| 52 | if k != other.keys[i] { |
| 53 | return false |
| 54 | } |
| 55 | |
| 56 | if !reflect.DeepEqual(m.data[k], other.data[k]) { |
| 57 | return false |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | return true |
| 62 | } |
| 63 | |
| 64 | // Get returns the value found under the given key. |
| 65 | func (m *Map) Get(key string) (any, bool) { |