bool IsOver5(int input) {
return input>5;
}
//this is the translation to lambda expression
list.Where(i => i > 5);
bool allHave9ScoreOrBetter = true;
foreach (var g in gameList) {
if(g.SteamScore < 9) {
allHave9ScoreOrBetter = false;
break;
}
}
//this is the translation to lambda expression
gameList.All(g => g.SteamScore >= 9);