github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/examples/collection/collection_iterating_go_1_22_test.go (about) 1 //go:build goexperiment.rangefunc 2 3 package collection 4 5 import ( 6 "testing" 7 8 "github.com/m4gshm/gollections/collection/immutable/set" 9 "github.com/m4gshm/gollections/loop/range_" 10 ) 11 12 func Test_Iterating_Rangefunc(t *testing.T) { 13 14 uniques := set.From(range_.Of(0, 100)) 15 for i := range uniques.All { 16 doOp(i) 17 } 18 19 }