Skip to content

What would be needed for an array-based version of Itertools::tuples(), etc? #243

Open
@HadrienG2

Description

@HadrienG2

The use of tuples in Itertools::tuples() and friends is questionable:

  • It suggests that type heterogeneity in iterator output is possible, which isn't accurate
  • It requires underscore-heavy turbofishes in user code
  • It could never scale to large groups of outputs, since the tuple-based signature takes O(N) characters

I think it would often make more sense to group consecutive items in arrays, as opposed to tuples. Can we agree on this? And if so, what would be needed to make it happen? I'm ready to help code this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions