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

Re-using an enumerable #38

Open
patroza opened this issue Sep 23, 2015 · 1 comment
Open

Re-using an enumerable #38

patroza opened this issue Sep 23, 2015 · 1 comment

Comments

@patroza
Copy link
Contributor

patroza commented Sep 23, 2015

E.g

var filters = this.enabledFilters.asEnumerable();
ar.where(x => filters.any(f => f.filter(x)));

This won't work because the filters enumerable will be in the 'done' state after the first .any() iteration.

I wasn't expecting this behavior, but knowing it now makes me able to workaround it ;-)

@ysmoradi
Copy link
Member

Thank you.
Perhaps we can start with a spec which fails.

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

2 participants