- Notifications
You must be signed in to change notification settings - Fork5.2k
More arities for tuple returning zip extension method#47147
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
0ebf10d Implementation.
huoyaoyuand7a8844 ref source
huoyaoyuan633908b Tests for Zip3.
huoyaoyuan35f0201 Implement queryable.zip3
huoyaoyuan807a30a ref source for Queryable.Zip3
huoyaoyuane88aebe Test for Queryable.Zip3
huoyaoyuandea7a27 xml doc
huoyaoyuanb72da7d Add to ILLink supression.
huoyaoyuaneba4d17 Fix argument name in copied tests.
huoyaoyuane751e70 PR feedbacks
huoyaoyuanFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
xml doc
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitdea7a27630c7a25e4513cbe960ff355836a5df2b
There are no files selected for viewing
10 changes: 10 additions & 0 deletionssrc/libraries/System.Linq.Queryable/src/System/Linq/Queryable.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletionssrc/libraries/System.Linq/src/System/Linq/Zip.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -42,6 +42,16 @@ public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult>(this IEnumerabl | ||
| return ZipIterator(first, second); | ||
| } | ||
| /// <summary> | ||
| /// Produces a sequence of tuples with elements from the three specified sequences. | ||
| /// </summary> | ||
| /// <typeparam name="TFirst">The type of the elements of the first input sequence.</typeparam> | ||
| /// <typeparam name="TSecond">The type of the elements of the second input sequence.</typeparam> | ||
| /// <typeparam name="TThird">The type of the elements of the third input sequence.</typeparam> | ||
| /// <param name="first">The first sequence to merge.</param> | ||
| /// <param name="second">The second sequence to merge.</param> | ||
| /// <param name="third">The third sequence to merge.</param> | ||
| /// <returns>A sequence of tuples with elements taken from the first, second and third sequences, in that order.</returns> | ||
huoyaoyuan marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| public static IEnumerable<(TFirst First, TSecond Second, TThird Third)> Zip<TFirst, TSecond, TThird>(this IEnumerable<TFirst> first, IEnumerable<TSecond> second, IEnumerable<TThird> third) | ||
| { | ||
| if (first is null) | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.