package main

import (
	"fmt"
	"slices"
)

func main() {
	temps := []int{38, 39, 53, 44}
	temps = append(temps, 41)

	fmt.Println(len(temps), "values:", temps)
	fmt.Println("first two:", temps[:2])
	fmt.Println("the warmest:", slices.Max(temps))

	sorted := slices.Clone(temps)
	slices.Sort(sorted)
	fmt.Println("sorted:", sorted)
	fmt.Println("as it was:", temps)
	fmt.Println("is 53 there?", slices.Contains(temps, 53))
}
