Skip to content

Commit

Permalink
Add link to jsfiddle demo
Browse files Browse the repository at this point in the history
  • Loading branch information
earldouglas committed Dec 20, 2014
1 parent e810a48 commit 7121e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var d = c.map(function (x) { return x + 1; }); // some(42)

### compose(f, g)

[*demo*](http://jsfiddle.net/earldouglas/8q1znL7n/)

`compose` takes two unary functions `f` and `g`, and combines them into a
single unary function `f ∘ g` that applies `g` to an input, passes the
output to `f`, applies `f` to it, and returns the result.
Expand Down
3 changes: 3 additions & 0 deletions lib/function.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict';

/**
*
* [*demo*](http://jsfiddle.net/earldouglas/8q1znL7n/)
*
* `compose` takes two unary functions `f` and `g`, and combines them into a
* single unary function `f ∘ g` that applies `g` to an input, passes the
* output to `f`, applies `f` to it, and returns the result.
Expand Down

0 comments on commit 7121e67

Please sign in to comment.