You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m=make(map[string]Vertex) // Cannot assign to a nil mapm["Bell Labs"] =Vertex{
40.68433, -74.39967,
}
// map literalm:=map[string]Vertex{
"Bell Labs": {40.68433, -74.39967}, // Omit the type"Google": {37.42202, -122.08408},
}
m[key] =elem// Assigndelete(m, key) // Deleteelem, ok=m[key] // Reading: ok is false and elem is a zero'd type if not found