Stdle #62 · slices · 2026-08-07
What does this Go snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" func main() { s := []int{10, 20, 30} fmt.Println(len(s), cap(s))}Slices
Stdle #62 · slices · 2026-08-07
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" func main() { s := []int{10, 20, 30} fmt.Println(len(s), cap(s))}