Created
July 24, 2020 17:14
-
-
Save krisleech/9a36cb6150e4df29d9ee615cb4bd7058 to your computer and use it in GitHub Desktop.
sketch
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
Add = ->(add, n) { n + add } | |
Times = ->(times, n) { n * times } | |
AddOne = Add.curry.call(1) | |
TimesFour = Times.curry.call(4) | |
AddOneTimesFour = AddOne >> TimesFour | |
AddOneTimesFour.(2) # => 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment