package main

import (
	"fmt"
	"slices"
)

func main() {
	// section: example
	s1 := []string{"apple", "banana"}
	s2 := []string{"cherry", "date"}
	s3 := []string{"elderberry"}

	// Before Go 1.21, you would need to chain append calls:
	// combined := append(append(s1, s2...), s3...)

	// With slices.Concat, this becomes cleaner:
	combined := slices.Concat(s1, s2, s3)

	fmt.Println("s1:", s1)
	fmt.Println("s2:", s2)
	fmt.Println("s3:", s3)
	fmt.Println("combined:", combined)
	// section: example
}
