From 7f78cfce9e76996935c799d76e08f71083d94d55 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sat, 28 Feb 2015 12:57:41 +0530 Subject: [PATCH] Defined HOF. --- readme.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a258431..9427e7d 100644 --- a/readme.md +++ b/readme.md @@ -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