Skip to content

Commit c7eb2ff

Browse files
authored
Update MutualRecursion.md
1 parent 9b1e4bb commit c7eb2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/MutualRecursion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ F = λ f . f (λn.(IsZero n) True (F (λ x y . y) (Pred n))) (λn.(IsZero n) Fal
5656
````
5757
There are no explicit references to `IsEven` or `IsOdd` in this equation. This is a definition of `F` that includes references to `F` in its body - i.e. this is an example of simple recursion.
5858

59-
Now we produce a non-recursive definition of `F` by following the procedure for [simple recursion](./SimpleRecursion.md) - let's call the result `F'`. The final step is to re-use the equations above for `IsEven` and `IsOdd` (but with `F'` instead of the equivalent `F`) :
59+
Now we produce a non-recursive definition of `F` by following the procedure for [simple recursion](./SimpleRecursion.md) - let's call the result `F'`. The final step is to re-use the equations above for `IsEven` and `IsOdd` (but with using the non-recursive `F'` instead of the equivalent `F`) :
6060
````haskell
6161
IsEven = F' (λ x y . x)
6262
IsOdd = F' (λ x y . y)

0 commit comments

Comments
 (0)