Skip to content

Instantly share code, notes, and snippets.

@rscarrera27
Last active February 12, 2020 06:10
Show Gist options
  • Save rscarrera27/599b92a19eeb1ebe1dc17daa0a4ebbef to your computer and use it in GitHub Desktop.
Save rscarrera27/599b92a19eeb1ebe1dc17daa0a4ebbef to your computer and use it in GitHub Desktop.
Is this possible
@curry({"t", 12})
def do_x(v, t):
...
match(func, arg1, arg2) >> {
str: do_x,
int: lambda x: print x,
InternalException: handle,
...: handle_default,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment