Anonymous recursion: Difference between revisions

m
imported>Maxima enthusiast
No edit summary
Line 1,357:
{{FormulaeEntry|page=https://formulae.org/?script=examples/Anonymous_recursion}}
 
'''Solution.'''
'''Solution.''' It consists in having a local function inside the main function, so it is neither visible nor available outside. The local function is defined after the validation, so if the input is invalid, neither the definition nor its invocation is performed.
 
'''Solution.''' It consists in having a local function inside the main function, so it is neither visible nor available outside. The local function is defined after the validation, so if the input is invalid, neither the definition nor its invocation is performed.
 
[[File:Fōrmulæ - Anonymous recursion 01.png]]
 
'''Test casecases'''
 
[[File:Fōrmulæ - Anonymous recursion 02.png]]
2,120

edits