Use infix version
This commit is contained in:
parent
9608bd9bd6
commit
25f4783b07
@ -2,7 +2,7 @@ To cut the story short, the abstract solution looks like this:
|
|||||||
\begin{haskellcode}
|
\begin{haskellcode}
|
||||||
fold :: b -> (a -> b -> b) -> [a] -> b
|
fold :: b -> (a -> b -> b) -> [a] -> b
|
||||||
fold z f [] = z
|
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}
|
\end{haskellcode}
|
||||||
Whoa! What's going on here?\\
|
Whoa! What's going on here?\\
|
||||||
Let's see...
|
Let's see...
|
||||||
|
Loading…
Reference in New Issue
Block a user