I was working on something that required me to catch the first char of a string. and return if it starts with S or s.
The pseudocode I considered was:
var foodsWithS = Foods.Where(food => food.Name[0] == 'S' || food.Name[0] == "s").Select(i => i.Name);
Unfortunately, this fails. What would be the best way to do this? Currently I have two lambdas to check for each case of the letter.