-
Notifications
You must be signed in to change notification settings - Fork 420
Closed
Description
From this part of the code:
MoreLINQ/MoreLinq/Interleave.cs
Lines 135 to 139 in 13c8c83
| // yield the values of each iterator's current position | |
| for (var index = 0; index < iterCount; index++) | |
| { | |
| yield return iteratorList[index].Current; | |
| } |
We can see that interleave eagerly have called MoveNext on all the enumerators from all the input sequence before yielding the first value.
This is useless for the ImbalancedInterleaveStrategy.Skip strategy. And this strategy is the only one accessible from the user (the strategies enum is not public).