Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created July 11, 2022 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/29d8efafd276da74e51f08681458fb18 to your computer and use it in GitHub Desktop.
Save lgolubyev/29d8efafd276da74e51f08681458fb18 to your computer and use it in GitHub Desktop.
public record Food (string Name, double Price);
var foodList = new List<Food>
{
new("🍎", 1.15),
new("🍌", 1.51),
new("🥥", 2.99),
new("🍋", 0.70),
new("🥑", 9.13),
new("🍄", 0.05),
};
//How do me find the cheapest food?
// How do we find the most expensive food?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment