mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
Merge pull request #35 from mariusschulz/patch-1
Curries `add` function in point-free style code
This commit is contained in:
commit
49e84bf415
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