Anonymous recursion: Difference between revisions
Content added Content deleted
Line 970: | Line 970: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Julia allows you to define an inner function (here, <code>aux</code>) that is only defined within the surrounding function <code>fib</code> scope. |
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) |
<lang julia>function fib(n) |
||
if n < 0 |
if n < 0 |