From 28aa73f0c6805cffcc2825670fe575cb6fbcd8dd Mon Sep 17 00:00:00 2001 From: trueproof Date: Tue, 4 Jul 2017 14:48:42 +0300 Subject: [PATCH] missing semicolon --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 44c46ce..50c8c3f 100644 --- a/readme.md +++ b/readme.md @@ -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.