package main

import (
	"fmt"
	"slices"
)

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

	fmt.Println(len(temps), "wartości:", temps)
	fmt.Println("pierwsze dwie:", temps[:2])
	fmt.Println("najwyższa:", slices.Max(temps))

	sorted := slices.Clone(temps)
	slices.Sort(sorted)
	fmt.Println("posortowane:", sorted)
	fmt.Println("bez zmian:", temps)
	fmt.Println("czy jest 53?", slices.Contains(temps, 53))
}
