github.com/enetx/g@v1.0.80/examples/iter/iter_skip.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/enetx/g" 7 ) 8 9 func main() { 10 iter := g.Slice[int]{1, 2, 3, 4, 5, 6}. 11 Iter(). 12 Skip(3). 13 Collect() 14 15 fmt.Println(iter) // Slice[4, 5, 6] 16 }