← Back to archive

Stdle #46 · slices · 2026-07-22

What does this Go snippet output?

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

package main
import "fmt"
func main() {
s := []string{"a", "b"}
s = append(s, []string{"c", "d"}...)
fmt.Println(s)
}
Slices
4 attempts left

Answer & explanation