Iterators.cat?

Is there any appetite for an Iterators.cat function? I often use Iterators.flatten like this:

Iterators.flatten((itr1, itr2, itr3))

But it feels kind of silly to put the iterators in a tuple just so I can concatenate them. I think a more natural syntax would be

Iterators.cat(itr1, itr2, itr3)

where Iterators.cat is a Vararg function.

13 Likes

Seems worth opening an issue to discuss.

4 Likes

Ok, I created an issue:

https://github.com/JuliaLang/julia/issues/36760

3 Likes