mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-12 13:36:40 +00:00
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:
parent
b79c730ad6
commit
6c314f238e
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ executions with the the same input parameters.
|
||||||
```js
|
```js
|
||||||
// Given
|
// Given
|
||||||
let map = fn => list => list.map(fn);
|
let map = fn => list => list.map(fn);
|
||||||
let add = (a, b) => a + b;
|
let add = a => b => a + b;
|
||||||
|
|
||||||
// Then
|
// Then
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue