From 25933d78c0c0fe93bc967f8e3eb73f637a8d1d0a Mon Sep 17 00:00:00 2001 From: An Phung Date: Mon, 15 Feb 2021 22:23:43 +0000 Subject: [PATCH] Fix endo example --- ch13.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch13.md b/ch13.md index 59ea3a12..2a70de99 100644 --- a/ch13.md +++ b/ch13.md @@ -299,7 +299,7 @@ Endo.empty = () => Endo(identity) // in action // thingDownFlipAndReverse :: Endo [String] -> [String] -const thingDownFlipAndReverse = fold(Endo(() => []), [Endo(reverse), Endo(sort), Endo(append('thing down')]) +const thingDownFlipAndReverse = fold(Endo.empty(), [Endo(reverse), Endo(sort), Endo(append('thing down')]) thingDownFlipAndReverse.run(['let me work it', 'is it worth it?']) // ['thing down', 'let me work it', 'is it worth it?']