From 1d9a5020ee34ca518ba0fb9aa4398cddb077949e Mon Sep 17 00:00:00 2001 From: Nadia Polikarpova Date: Fri, 10 May 2024 08:51:49 -0700 Subject: [PATCH] update page --- docs/lectures/04-hof.html | 2 +- lectures/04-hof.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/lectures/04-hof.html b/docs/lectures/04-hof.html index 6f34648..35d7c86 100644 --- a/docs/lectures/04-hof.html +++ b/docs/lectures/04-hof.html @@ -816,7 +816,7 @@

QUIZ

B. len = foldr (\n m -> n + m) 0

C. len = foldr (\_ n -> n + 1) 0

D. len = foldr (\x xs -> 1 + len xs) 0

-

E. All of the above

+

E. None of the above

HINT: remember that foldr :: (a -> b -> b) -> b -> [a] -> b!



diff --git a/lectures/04-hof.md b/lectures/04-hof.md index 2614d92..90a6efd 100644 --- a/lectures/04-hof.md +++ b/lectures/04-hof.md @@ -826,7 +826,7 @@ Which of these is a valid implementation of `len` **D.** `len = foldr (\x xs -> 1 + len xs) 0` -**E.** All of the above +**E.** None of the above **HINT**: remember that `foldr :: (a -> b -> b) -> b -> [a] -> b`!