Merge pull request #160 from trueproof/patch-3

missing semicolon
This commit is contained in:
hemanth.hm 2017-07-05 20:35:35 +05:30 committed by GitHub
commit ed61514c4c

View file

@ -415,7 +415,7 @@ object.map(compose(f, g)) ≍ object.map(g).map(f)
A common functor in JavaScript is `Array` since it abides to the two functor rules:
```js
[1, 2, 3].map(x => x) // = [1, 2, 3]
;[1, 2, 3].map(x => x) // = [1, 2, 3]
```
and
@ -496,7 +496,7 @@ An anonymous function that can be treated like a value.
Lambdas are often passed as arguments to Higher-Order functions.
```js
[1, 2].map((a) => a + 1) // [2, 3]
;[1, 2].map((a) => a + 1) // [2, 3]
```
You can assign a lambda to a variable.