Consume and create iterator functions using modern range-over-function patterns. Design lazy sequences, early termination, adapters, and collection helpers while accounting for Go version compatibility.