wrapperfunction

noun
UK /ˈræpə ˈfʌŋkʃən/
US /ˈræpər ˈfʌŋkʃən/

A wrapper function is a small helper that calls another function for you.

The developer wrote a wrapper function to add logging before calling the main routine.


OTHER MEANINGS

2. In programming, a function that adds extra behavior around an existing function without changing it.

She used a wrapper function to cache results from the slow database query.

3. A function that hides the complexity of another function or library behind a simpler interface.

The wrapper function lets beginners call the graphics library with just one line.

4. A thin layer of code that translates arguments and return values between two systems.

The wrapper function converts JSON input into the format the legacy service expects.