functionoid

noun
UK /ˈfʌŋkʃənɔɪd/
US /ˈfʌŋkʃənɔɪd/

A functionoid is a little object that acts like a function you can call.

The programmer used a functionoid so the button could remember which action to run.


OTHER MEANINGS

2. In C++, an object of a class that overloads the function-call operator so it can be used like a function.

He replaced the plain function pointer with a functionoid to store extra state.

3. A small helper routine or mini-function that performs one narrow task inside a larger program.

The code was split into several functionoids, each handling a single step.

4. Informal term for a function-like construct in a language that lacks first-class functions.

Older codebases often simulated callbacks with functionoids.