Fermium-co / Fermium-co/LINQ4ES2015

Re-using an enumerable

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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 ;-)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.