An open API service indexing awesome lists of open source software.

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

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.