|
|
|
|
|
by ilyt
1036 days ago
|
|
you can just return channel. range works over channels. Close channel once you're done with iterator. Technically there is side effect of that (iterator done like that would always produce extra value before exiting) but you could probably work around it without much boilerplate |
|