Stdle #143 · slices · 2026-10-27
What does this Go snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" func main() { s := make([]int, 0, 2) s = append(s, 1, 2, 3) fmt.Println(len(s), cap(s))}Slices