Quiz · Maps · lesson 5 of 9
Quiz — iteration order
In what order does this loop visit the pairs of the map?
package main
import "fmt"
func main() {
m := map[int]string{1: "a", 2: "b", 3: "c"}
for k, v := range m {
fmt.Println(k, v)
}
}Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.