Mutual recursion: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m →{{header|REBOL}}: Remove vanity tags |
m minor simplification |
||
Line 2,014:
=={{header|Phix}}==
You should normally explicitly declare forward routines (strictly necessary only when using optional or named parameters), since it often makes things easier to understand. There would be no point pre-declaring F, since it is not called before it is defined anyway.
<lang Phix>forward function
return iff(n?n-M(F(n-1)):1)
end function
Line 2,029 ⟶ 2,032:
printf(1," %d",M(i))
end for</lang>
▲forward function M(integer n)</lang>
{{out}}
<pre>
|