Anonymous recursion: Difference between revisions

→‎{{header|UNIX Shell}}: Clarify the code by renaming the helper from 'fib' to 'fib2'; the helper and the parent function need not have the same name.
m (→‎{{header|AutoHotkey}}: incorrect per talk page)
(→‎{{header|UNIX Shell}}: Clarify the code by renaming the helper from 'fib' to 'fib2'; the helper and the parent function need not have the same name.)
Line 880:
else
(
fibfib2() {
if test 2 -gt "$1"; then
echo "$1"
else
echo $(( $(fibfib2 $(($1 - 1)) ) + $(fibfib2 $(($1 - 2)) ) ))
fi
}
fibfib2 "$1"
)
fi
Anonymous user