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 keys, then collect and sort for stable output
	keys := maps.Keys(m)
	keySlice := slices.Collect(keys)
	slices.Sort(keySlice)

	fmt.Println("Keys:", keySlice)
	// section: example
}
