Skip to content

Commit

Permalink
docs: simplify currying example
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercejudo committed Sep 13, 2015
1 parent 76bfbf3 commit 42ef661
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,10 @@ See [CodePen example](http://codepen.io/javiercejudo/pen/WvEWdQ?editors=101).

## Currying

The `convert` function is designed to play nicely with currying. Here is
a full example:
The `convert` function is designed to play nicely with currying:

```js
var Decimal = require('arbitrary-precision')(require('floating-adapter'));
var lc = require('linear-converter')(Decimal);
var curry = require('lodash.curry');
var temp = require('linear-presets').PRESETS.temperature;

var curriedConvert = curry(lc.convert);

Expand Down

0 comments on commit 42ef661

Please sign in to comment.