You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,9 +115,9 @@ ie. they allow referencing a scope after the block in which the variables were d
115
115
116
116
117
117
```js
118
-
constaddTo=x=>y=> x + y;
119
-
var addToFive =addTo(5);
120
-
addToFive(3);//returns 8
118
+
constaddTo=x=>y=> x + y
119
+
var addToFive =addTo(5)
120
+
addToFive(3) //returns 8
121
121
```
122
122
The function ```addTo()``` returns a function(internally called ```add()```), lets store it in a variable called ```addToFive``` with a curried call having parameter 5.
123
123
@@ -439,7 +439,7 @@ const f = x => x + 1
439
439
constg=x=> x *2
440
440
441
441
;[1, 2, 3].map(x=>f(g(x))) // = [3, 5, 7]
442
-
;[1, 2, 3].map(g).map(f) // = [3, 5, 7]
442
+
;[1, 2, 3].map(g).map(f) // = [3, 5, 7]
443
443
```
444
444
445
445
## Pointed Functor
@@ -704,7 +704,7 @@ A homomorphism is just a structure preserving map. In fact, a functor is just a
0 commit comments