Curriculum Collections Maps exercise 5 · fill-word
Maps
Translate the TS delete to Go. The Go builtin is a free-standing
function — not a method on the map — and it takes the map FIRST,
then the key.
TypeScript reference
Fill the blanks →
About this theme
map[K]V. Like a TS Record<K, V> or Map<K, V>. Lookup with comma-ok: v, ok := m[key]. Iteration order is undefined — every range yields a different ordering. Maps are reference types; passing a map to a function shares it.