Skip to content

Instantly share code, notes, and snippets.

@rarous
Created January 17, 2013 19:16
Show Gist options
  • Save rarous/4558712 to your computer and use it in GitHub Desktop.
Save rarous/4558712 to your computer and use it in GitHub Desktop.
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;
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