Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 20 hours ago
JSON representation

Generic iterators from go_generics

Awesome Lists containing this project

README

        

# go-iter
Generic iterators from go_generics

Just 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.