diff --git a/readme.md b/readme.md index dbac9c7..343b480 100644 --- a/readme.md +++ b/readme.md @@ -108,9 +108,7 @@ executions with the the same input parameters. Simplest functor in javascript is an `Array` ```js -[2,3,4].map( function(n) { - return n + 2; -}); // [4,6,8] +[2,3,4].map( n => n * 2 ); // [4,6,8] ``` ---