localfunction

noun
UK /ˌləʊkəl ˈfʌŋkʃən/
US /ˌloʊkəl ˈfʌŋkʃən/

A small helper job inside a computer program that only works in one little part of the program.

The programmer wrote a localfunction to add up the scores in that game level.


OTHER MEANINGS

2. A function that is only visible and usable within the block of code where it is defined.

Because it was a localfunction, the code outside the block could not call it.

3. A small task or duty that belongs to one particular area or community.

Sorting the mail was a localfunction of the neighborhood office.

4. In some programming languages, a named routine declared inside another routine.

The localfunction kept the main program tidy by hiding the details.