simplefunction

noun
UK /ˈsɪmpəl ˈfʌŋkʃən/
US /ˈsɪmpəl ˈfʌŋkʃən/

A simple function is a small job or task that does just one easy thing.

The light switch is a simple function that turns the lamp on and off.


OTHER MEANINGS

2. In math, a simple function is a rule that gives one clear answer for each input.

Doubling a number is a simple function: put in 3 and get 6.

3. In computing, a simple function is a short piece of code that does one small job.

The program uses a simple function to add two numbers.

4. A simple function can mean a basic purpose or role that something serves.

The handle's simple function is to let you open the door.