Skip to content

Instantly share code, notes, and snippets.

@skw
Last active September 30, 2016 23:48
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 skw/8b9d7bb8f405d5ed493dff5bf49aae9b to your computer and use it in GitHub Desktop.
Save skw/8b9d7bb8f405d5ed493dff5bf49aae9b to your computer and use it in GitHub Desktop.
match.md
trie-based siwtch:
match(arg)({
'this': () => console.log('this'),
'that': () => console.log('this'),
})(default)
match(arg)(
function this() {console.log('this')},
function that() {console.log('this')},
})(default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment