From 6c314f238e33258613ce3e6a6ed04d373692c14d Mon Sep 17 00:00:00 2001 From: Marius Schulz Date: Sun, 29 May 2016 13:11:01 +0200 Subject: [PATCH] Curries `add` function in point-free style code The `add` function needs to be curried in order for the code example to work. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 7170729..d29ca38 100644 --- a/readme.md +++ b/readme.md @@ -141,7 +141,7 @@ executions with the the same input parameters. ```js // Given let map = fn => list => list.map(fn); -let add = (a, b) => a + b; +let add = a => b => a + b; // Then