Last active
August 29, 2015 14:13
-
-
Save algesten/a7682eb09cb85e26f1d3 to your computer and use it in GitHub Desktop.
get/set fn
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
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