// Scan iterates through all values.
// It's not safe to call or Set or Delete while scanning.
Scan iterates through all values.
It's not safe to call or Set or Delete while scanning.
// Scan iterates through all values . // It ' s not safe to call or Set or Delete while scanning .
func (m *Map) Scan(iter func(key string, value interface{}) bool) {
	for i := 0; i < len(m.entries); i++ {
		if m.entries[i].dist > 0 {
			if !iter(m.entries[i].key, m.entries[i].value) {
				return
			}
		}
	}
}
func ( m * Map ) Scan ( iter func ( key string , value interface { } ) bool ) { for i := 0 ; i < len ( m . entries ) ; i ++ { if m . entries [ i ] . dist > 0 { if ! iter ( m . entries [ i ] . key , m . entries [ i ] . value ) { return } } } }
Scan iterates through all values.
Scan iterates through all values .