Created
July 30, 2015 14:11
-
-
Save dalejung/4ddfc1832bab13f7a3e1 to your computer and use it in GitHub Desktop.
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
@pattern | |
def multi_return(x): | |
meta[match: x] | |
~ float [when: x > 1] | type(x), x, x | |
~ int [when: x > 100 and x < 150] | x, 'Between 100 and 150' | |
~ int [when: x > 10]| 'INT OVER 10' | |
~ int | type(x), x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment