Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transpose eagerly calls GetEnumerator #731

Closed
Orace opened this issue Dec 12, 2019 · 1 comment
Closed

Transpose eagerly calls GetEnumerator #731

Orace opened this issue Dec 12, 2019 · 1 comment

Comments

@Orace
Copy link
Contributor

Orace commented Dec 12, 2019

Like #729, with current implementation of Transpose,
The code below throws:

var sequences = new IEnumerable<int>[]
{
    TestingSequence.Of(1),
    new BreakingSequence<int>()
};

var transpose = sequences.Transpose().Take(1).ToList();

While we can expect transpose to be a list of one element.

@Orace
Copy link
Contributor Author

Orace commented Dec 12, 2019

Since transpose emit batch, it's a normal behavior.

@Orace Orace closed this as completed Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant