func (m *Dictionary[KT, VT]) Map() map[KT]VT {
	m.lock.RLock()
	defer m.lock.RUnlock()
	if m.m == nil {
		return nil
	}
	m2 := make(map[KT]VT)
	for k, v := range m.m {
		m2[k] = v
	}
	return m2
}
// Map returns a map copy of the dictionary.
Map returns a map copy of the dictionary.
// Map returns a map copy of the dictionary .
func (m *Dictionary[KT, VT]) Map() map[KT]VT {
	m.lock.RLock()
	defer m.lock.RUnlock()
	if m.m == nil {
		return nil
	}
	m2 := make(map[KT]VT)
	for k, v := range m.m {
		m2[k] = v
	}
	return m2
}
func ( m * Dictionary [ KT , VT ] ) Map ( ) map [ KT ] VT { m . lock . RLock ( ) defer m . lock . RUnlock ( ) if m . m == nil { return nil } m2 := make ( map [ KT ] VT ) for k , v := range m . m { m2 [ k ] = v } return m2 }
Map returns a map copy of the dictionary.
Map returns a map copy of the dictionary .