79249397

Date: 2024-12-03 22:53:02
Score: 2.5
Natty:
Report link

Go 1.22

As said by @Mart, There's a library function for that, example usage:

w := [][]string{{"a", "b", "c"}, {"d", "e", "f"}}
v := slices.Concat(w...)
fmt.Println(v) // [a b c d e f]

see - https://pkg.go.dev/[email protected]#Concat

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mart
  • Low reputation (0.5):
Posted by: Michael Tadnir