Stdle #74 · slices · 2026-08-19
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{1, 2, 3} t := s[:1] fmt.Println(len(t), cap(t))}Slices
Stdle #74 · slices · 2026-08-19
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" func main() { s := []int{1, 2, 3} t := s[:1] fmt.Println(len(t), cap(t))}