Skip to content

Commit 49e84bf

Browse files
committed
Merge pull request hemanth#35 from mariusschulz/patch-1
Curries `add` function in point-free style code
2 parents b79c730 + 6c314f2 commit 49e84bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ executions with the the same input parameters.
141141
```js
142142
// Given
143143
let map = fn => list => list.map(fn);
144-
let add = (a, b) => a + b;
144+
let add = a => b => a + b;
145145

146146
// Then
147147

0 commit comments

Comments
 (0)