JonasMuehlmann / datastructures.go

The missing generic container library for go, featuring an extensive iterator API.
Other
4 stars 0 forks source link

Make iterators implement wrapper methods for chainable calls to `goaoi` functions #75

Open JonasMuehlmann opened 2 years ago

JonasMuehlmann commented 2 years ago

To make the calls chainable, they can not return errors in addition to the new iterators. To signal errors, they should return end iterators and a wrapper should do if it.IsEnd() {return it} before anything else.

JonasMuehlmann commented 2 years ago

This probably needs to be implemented in the interfaces as well