package main

import (
	"fmt"
	"slices"
)

func main() {
	// section: example
	numbers := []int{10, 20, 30, 40}

	// slices.Values returns an iterator over values only (no indices)
	fmt.Println("Using slices.Values:")
	for v := range slices.Values(numbers) {
		fmt.Printf("  value: %d\n", v)
	}

	// This is useful when you only care about values
	// and want to pass them to iterator-consuming functions
	// section: example
}
