Hi.
Currently golang-set has Iter and Iteration method, but it is not necessary to return the channel in many cases that iterate elements.(Of course, sometimes it is necessary.) So I propose an iteration method that does not use channels or goroutines.
Each method is faster than Iter and Iterator. Benchmark is here:
Hi @bluele - thanks for your contribution looks like a nice addition to the API. I’ll reciew this I detail and get back to you...if everything looks good I’ll be merging it!
Hi. Currently golang-set has Iter and Iteration method, but it is not necessary to return the channel in many cases that iterate elements.(Of course, sometimes it is necessary.) So I propose an iteration method that does not use channels or goroutines.
Each method is faster than Iter and Iterator. Benchmark is here: