Content deleted Content added
m + topic in text |
fixed claim that this is "bad style" |
||
Line 3:
For instance, consider two functions A(x) and B(x) defined as follows:
A(x
A(x
B(x) = A(x - 3) + 4
Mutual recursion is very common in the [[functional programming]] style, and is often used for programs written in [[LISP]], [[Scheme programming language|Scheme]], [[ML]], and similar [[programming language|languages]]. In languages such as [[Prolog programming language|Prolog]], mutual recursion is almost unavoidable.
Not all programming styles encourage mutual recursion. Some programmers avoid it because they find it confusing.
|