Created
January 17, 2013 19:16
-
-
Save rarous/4558712 to your computer and use it in GitHub Desktop.
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
var matchingPairs = from item in groups. | |
Zip(groupNames, (group, name) => new { | |
Pair = CreatePair(name, group.Value), | |
IsMatch = group.Success, | |
}) | |
where item.IsMatch && IsValidKeyAndValue(item.Pair) | |
select item.Pair; |
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
var matchingPairs = from item in groups. | |
Zip(groupNames, (group, name) => new { | |
Pair = CreatePair(name, group.Value), | |
IsMatch = group.Success, | |
}) | |
where item.IsMatch && IsValidKeyAndValue(item.Pair) | |
select item.Pair; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment