callablefunction

noun
UK /ˈkɔːləbl ˈfʌŋkʃən/
US /ˈkɔːləbl ˈfʌŋkʃən/

A callable function is a piece of code you can ask to do a job.

The programmer wrote a callable function to add two numbers together.


OTHER MEANINGS

2. In programming, a value that can be invoked like a function, such as a lambda or a function object.

She passed a callable function as an argument to the sorting routine.

3. A named block of reusable instructions that performs a specific task when called.

The callable function cleans up temporary files after the program finishes.

4. An object or reference that supports the call operation, allowing it to be executed with arguments.

In Python, any object with a __call__ method is a callable function.