Jump to content

Anonymous recursion: Difference between revisions

Line 970:
 
=={{header|Julia}}==
Julia allows you to define an inner/nested function (here, <code>aux</code>) that is only defined within the surrounding function <code>fib</code> scope.
<lang julia>function fib(n)
if n < 0
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.