Skip to content

Instantly share code, notes, and snippets.

@adamloving
Created November 25, 2014 01:29
Show Gist options
  • Save adamloving/21e96c375885b02b3e89 to your computer and use it in GitHub Desktop.
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
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