Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 9, 2019 03:18
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 IntegerMan/8ac0d5b513011c6570850183461083c2 to your computer and use it in GitHub Desktop.
Save IntegerMan/8ac0d5b513011c6570850183461083c2 to your computer and use it in GitHub Desktop.
return entry.Name switch {
"Bruce Wayne" => Heroes.Batman,
"Matt Eland" => Heroes.Batman,
"The Thing" when entry.Source == "John Carpenter" => Heroes.AntiHero,
"The Thing" => Heroes.ComicThing,
"Bruce Banner" => Heroes.TheHulk,
_ => Heroes.NotAHero
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment