Defined HOF.

This commit is contained in:
Hemanth.HM 2015-02-28 12:57:41 +05:30
parent adfadf7af0
commit 7f78cfce9e

View file

@ -19,6 +19,17 @@ console.log(arity);
```
---
## Higher Order Functions (HOF)
> A function for which both the input and the output are functions.
```js
let greet = (name) => () => `Hello ${name}!`;
```
```js
greet("HOF")(); // Hello HOF!
```
## Partial Application
---
@ -57,7 +68,7 @@ referential transparent.
## Monoid
- - -
---
## Monad