immutablefunction
nounUK /ɪˈmjuːtəbl ˈfʌŋkʃn/
US /ɪˈmjuːtəbl ˈfʌŋkʃn/
A function that always gives the same answer and never changes anything.
Because the function is immutable, calling it twice with the same number always returns the same result.
OTHER MEANINGS
2. A function whose internal state cannot be altered after it is created.
The immutable function keeps its configuration locked, so no code can modify it later.
3. In mathematics, a function that maps every input to the same fixed output.
The immutable function returns 7 no matter what value you pass in.
4. A programming construct that guarantees no changes to its arguments.
Passing the list to an immutable function leaves the original list untouched.