From 25f4783b07082e785dd1b4e19e9df983ffb72729 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 20 Apr 2015 15:06:54 +0200 Subject: [PATCH] Use infix version --- VL2/content/VL2_rec_patterns9.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VL2/content/VL2_rec_patterns9.tex b/VL2/content/VL2_rec_patterns9.tex index 1edc18a..0583e06 100644 --- a/VL2/content/VL2_rec_patterns9.tex +++ b/VL2/content/VL2_rec_patterns9.tex @@ -2,7 +2,7 @@ To cut the story short, the abstract solution looks like this: \begin{haskellcode} fold :: b -> (a -> b -> b) -> [a] -> b fold z f [] = z -fold z f (x:xs) = f x (fold z f xs) +fold z f (x:xs) = x `f` (fold z f xs) \end{haskellcode} Whoa! What's going on here?\\ Let's see...