8000 Repeat iterates second sequence more than once · Issue #489 · morelinq/MoreLINQ · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Repeat iterates second sequence more than once #489
Closed
@atifaziz

Description

@atifaziz

Cartesian iterates second sequence as many times as items in the first sequence. There's even a to-do comment in the code that this needed addressing:

while (count == null || count-- > 0)
{
// TODO buffer to avoid multiple enumerations
foreach (var item in sequence)
yield return item;
}

This is being considered a breaking change for sake of alerting users that it's behaving now the way it should've in the first place.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0