-
Notifications
You must be signed in to change notification settings - Fork 416
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
[Proposal] EquiInterleave #695
Comments
What does
|
This can be achieved relatively easily with var xs =
from e in Enumerable.Range(1, 10)
.EquiZip(Enumerable.Range(11, 10), ValueTuple.Create)
from x in MoreEnumerable.Return(e.Item1)
.Append(e.Item2)
select x;
foreach (var x in xs)
Console.WriteLine(x); Outputs:
Yes, it's never going to be as optimal as an operator implemented by hand, but I'm afraid I don't think it's common enough to warrant adding and maintaining a whole new operator along with its tests. I'm happy to reconsider if it can be demonstrated to be extremely common in some field. |
Like
EquiZip
,EquiInterleave
throw if input sequences differ in size.The text was updated successfully, but these errors were encountered: