Skip to content

Commit 62e84dc

Browse files
authored
Update MutualRecursion.md
1 parent 809f57c commit 62e84dc

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
@@ -52,7 +52,7 @@ These are definitions of `IsEven` and `IsOdd` in terms of `F`, which we can subs
5252
F = λ f . f (λn.(IsZero n) True (F (λ x y . y) (Pred n))) (λn.(IsZero n) False (F (λ x y . x) (Pred n)))
5353
^^^^IsOdd^^^ ^^^^IsEven^^^
5454
````
55-
Notice that there are no 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.
55+
Notice that 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.
5656

5757
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`) :
5858
````haskell

0 commit comments

Comments
 (0)