package main

import (
	"fmt"
	"maps"
	"slices"
)

func main() {
	// section: example
	m := map[string]int{
		"Alice":   25,
		"Bob":     30,
		"Charlie": 35,
	}

	// Get an iterator over the values, then collect and sort for stable output
	values := maps.Values(m)
	valueSlice := slices.Collect(values)
	slices.Sort(valueSlice)

	fmt.Println("Values:", valueSlice)
	// section: example
}
