https://github.com/johnchildren/go-iter
Generic iterators from go_generics
https://github.com/johnchildren/go-iter
code-generation generic golang iterator
Last synced: about 10 hours ago
JSON representation
Generic iterators from go_generics
- Host: GitHub
- URL: https://github.com/johnchildren/go-iter
- Owner: johnchildren
- License: bsd-3-clause
- Created: 2018-08-11T08:49:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-12T15:37:14.000Z (almost 7 years ago)
- Last Synced: 2025-07-02T08:19:08.350Z (4 days ago)
- Topics: code-generation, generic, golang, iterator
- Language: Go
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-iter
Generic iterators from go_genericsJust a little experiment inspired by https://github.com/scylladb/go-set for now.
Basically I just want to implement something very similar to Rust's Iterator trait which seems like it might
be possible with go_generics and generic interfaces. I'm not sure how ergonomic it will be to use though,
particularly when implementing Map and Filter equivilents.