https://github.com/psenger/curryingfunctionnodejs
An Example of Currying Functions in NodeJS
https://github.com/psenger/curryingfunctionnodejs
Last synced: 7 months ago
JSON representation
An Example of Currying Functions in NodeJS
- Host: GitHub
- URL: https://github.com/psenger/curryingfunctionnodejs
- Owner: psenger
- Created: 2015-04-12T04:10:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T13:36:44.000Z (over 9 years ago)
- Last Synced: 2024-04-14T14:29:52.189Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Currying Function NodeJS - An Example of Currying Functions in NodeJS
Written by Philip A Senger
[philip.a.senger@cngrgroup.com](mailto:philip.a.senger@cngrgroup.com) |
mobile: 0406770664 |
[CV/Resume](http://www.visualcv.com/philipsenger) |
[blog](http://www.apachecommonstipsandtricks.blogspot.com/) |
[LinkedIn](http://au.linkedin.com/in/philipsenger) |
[twitter](http://twitter.com/PSengerDownUndr)
Currying is a technique of transforming the evaluation of a single function so that takes multiple arguments into evaluating a sequence of functions, each with a single argument (partial application).
This technique is extremely useful when used with Promises.
In this example, I attempt to extract titles from books and diag codes from medical procedures.