mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +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
|
||||
// Given
|
||||
let map = fn => list => list.map(fn);
|
||||
let add = (a, b) => a + b;
|
||||
let add = a => b => a + b;
|
||||
|
||||
// Then
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue