-
Notifications
You must be signed in to change notification settings - Fork 65
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] Add a Zip LINQ query operator #535
Comments
I don't understand the proposed function of the Zip operator... Can you explain for us mere mortals? |
@aarondglover updated original post. |
Look great but personally I prefer to use Dim zs = From x In xs, y In ys Zip (x, y)
Dim ss = From x In xs, y In ys Select (x, y) |
@RevensofT |
Great, but I can suggest a more compact syntax using tuple-alike syntax:
Note that
In fact I hope to generalize this tuple iterator for all loops:
|
Documentation on ZIP method.
Prior Art: Roslyn-8221
Roslyn-100
From #525, separating out the discussion around a Zip operator
Output
This would be lowered in to a call to
Enumerable.Zip
function. eg.Implementation
Definition of
ZipKeyword
This will be contextual keyword, expressible within a LINQ Query Clause.
Definition of
ZipClauseSyntax
Refactor out the parsing
CollectionRangeVariable
fromParseFromControlVar
, so it can also be utilised by the `ParseZipClause" function,The text was updated successfully, but these errors were encountered: