`make(map[string]int)` creates a map. The two-value form `v, ok := m[k]` distinguishes a missing key from a zero value. Iteration order is deliberately randomised, deletion uses `delete`, and writing to a nil map panics.
← Go theorytheory 0/50 · 0%
Collections · easy
8. Maps
Hash tables with comma-ok lookup.
Check your understanding
1. What does the ok in `v, ok := m[k]` report?
2. Map iteration order is…