Created
November 25, 2014 01:29
-
-
Save adamloving/21e96c375885b02b3e89 to your computer and use it in GitHub Desktop.
trying to come up with a simple example of why I prefer OO over functional programming
This file contains hidden or 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
action = curry(goUp, 'hill') | |
[jack, jill].map(action) | |
for person in [jack, jill] | |
person.goUp('hill') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment