https://github.com/keep94/itertools
Package itertools contains iterator functions like Zip.
https://github.com/keep94/itertools
golang iterators
Last synced: 2 days ago
JSON representation
Package itertools contains iterator functions like Zip.
- Host: GitHub
- URL: https://github.com/keep94/itertools
- Owner: keep94
- License: bsd-3-clause
- Created: 2025-01-26T01:36:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-12T03:56:51.000Z (7 months ago)
- Last Synced: 2025-11-12T06:04:53.995Z (7 months ago)
- Topics: golang, iterators
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
itertools
=========
Package itertools contains iterator functions like Zip.
## Examples
```golang
package main
import (
"fmt"
"slices"
"github.com/keep94/itertools"
)
func main() {
lettersIter := slices.Values([]string{"a", "b", "c"})
numbersIter := slices.Values([]int{1, 2, 3})
// Prints:
// a 1
// b 2
// c 3
for letter, number := range itertools.Zip(lettersIter, numbersIter) {
fmt.Println(letter, number)
}
}
```
More documentation and examples can be found [here](https://pkg.go.dev/github.com/keep94/itertools).