A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-46.go
1packagemain
2
3import"fmt"
4
5funcmain(){
6s:=[]string{"a","b"}
7s=append(s,[]string{"c","d"}...)
8fmt.Println(s)
9}
Slices
Answer & explanation
Console output
[a b c d]
Why
You can spread an inline slice literal with ... directly inside append, expanding it into individual arguments. Here "c" and "d" are appended to s, producing [a b c d]. Println of a string slice prints the elements space-separated without quotes.