containedfunction

noun
UK /kənˈteɪnd ˈfʌŋkʃən/
US /kənˈteɪnd ˈfʌŋkʃən/

A contained function is a small job that stays inside one place and does not spill out.

The programmer wrote a contained function so the game's score only changes in one spot.


OTHER MEANINGS

2. In math, a contained function is a rule that only works inside a certain set of numbers.

The contained function only gives answers for numbers between zero and ten.

3. A contained function can mean a task kept safely within limits.

The fire drill was a contained function and stayed in the gym.

4. In coding, a contained function is a helper that lives inside a bigger function.

She put the contained function inside the main one to keep things tidy.