embedded-function
nounUK /ɪmˈbɛdɪd ˈfʌŋkʃən/
US /ɪmˈbɛdɪd ˈfʌŋkʃən/
A small helper function that is written inside another function.
The programmer used an embedded function to clean up the input before saving it.
RELATED WORDS
OTHER MEANINGS
2. A function built into a device or system rather than added separately.
The calculator's embedded function handles square roots automatically.
3. A piece of code inserted directly into a larger program or page.
The embedded function in the webpage updates the clock every second.
4. A routine that runs inside another routine's body and can use its variables.
Because it was an embedded function, it could read the outer counter directly.