Nested function
FUNCTION DEFINED INSIDE ANOTHER FUNCTION
Nested functions; Nested procedure; Local function definition; Local function; Nested function definition; Local procedure
In computer programming, a nested function (or nested procedure or subroutine) is a function which is defined within another function, the enclosing function. Due to simple recursive scope rules, a nested function is itself invisible outside of its immediately enclosing function, but can see (access) all local objects (data, functions, types, etc.