Skip to content

Add Iterators.cat #36760

@CameronBieganek

Description

@CameronBieganek

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.

(Copied and pasted from this Discourse post.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsiterationInvolves iteration or the iteration protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions