Skip to content

Instantly share code, notes, and snippets.

@algesten
Last active August 29, 2015 14:13
Show Gist options
  • Save algesten/a7682eb09cb85e26f1d3 to your computer and use it in GitHub Desktop.
Save algesten/a7682eb09cb85e26f1d3 to your computer and use it in GitHub Desktop.
get/set fn
set = (v) -> (f) -> f(v)
get = (f) -> f (v) -> v
t = set(42)
get(t) // 42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment