Created
September 20, 2023 12:47
-
-
Save anderseknert/4611f0e9fade267a2ba074abde1fce35 to your computer and use it in GitHub Desktop.
Pattern matching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First name may be either "joe" or "jane" for function to evaluate | |
allowed_firstname(name) if name == "joe" | |
allowed_firstname(name) if name == "jane" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment