← Back to archive

Stdle #7 · 2026-06-13

What does this log?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

package main
import "fmt"
func main() {
type Acc struct {
Sum, Count int
}
m := map[string]Acc{}
a := m["x"]
a.Sum += 5
fmt.Println(a.Sum, m["x"].Count)
}
Maps
4 attempts left

Answer & explanation