predictablefunction

noun
UK /prɪˈdɪktəbl ˈfʌŋkʃn/
US /prɪˈdɪktəbl ˈfʌŋkʃn/

A predictable function is a job or action that always does the same thing every time you use it.

The light switch is a predictable function because it always turns the light on.


OTHER MEANINGS

2. In math, a rule that always gives the same answer for the same input.

Adding two is a predictable function: put in 3 and you always get 5.

3. In computing, a piece of code that always returns the same output for the same input.

The sorting program is a predictable function, so the list comes out the same way each time.

4. A person's habit that others can always count on.

Grandpa's afternoon nap is a predictable function in our house.