Curries add function in point-free style code

The `add` function needs to be curried in order for the code example to work.
This commit is contained in:
Marius Schulz 2016-05-29 13:11:01 +02:00
parent b79c730ad6
commit 6c314f238e

View file

@ -141,7 +141,7 @@ executions with the the same input parameters.
```js
// Given
let map = fn => list => list.map(fn);
let add = (a, b) => a + b;
let add = a => b => a + b;
// Then