Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sequences of bid values:
- List<int> bidValues1 = new List<int>() { 1, 2, 3, 4, 5 };
- List<int> bidValues2 = new List<int>() { 5, 3, 4, 1, 2 };
- // Find the maximum bids:
- bidValues1.Zip(bidValues2, (bid1, bid2) =>
- Math.Max(bid1, bid2))
- .Dump("Maximum Bids");
- // Find the minumum bids:
- bidValues1.Zip(bidValues2, (bid1, bid2) =>
- Math.Min(bid1, bid2))
- .Dump("Minimum Bids");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement