all-purpose function

noun
UK /ˌɔːlˈpɜːpəs ˈfʌŋkʃən/
US /ˌɔːlˈpɜːrpəs ˈfʌŋkʃən/

A thing that can do many different jobs.

This all-purpose function lets the app take photos, play music, and send messages.


OTHER MEANINGS

2. A single function in a program or device that handles many kinds of tasks instead of just one.

The all-purpose function in the toolkit can clean, sort, and format data.

3. A general role or duty that covers many different activities.

Her all-purpose function on the team meant she helped with planning, writing, and testing.

4. A mathematical or logical operation designed to work for many different inputs.

The all-purpose function returns the right result for numbers, words, or lists.