👉 In computer science, a nondiscriminatory function is one that does not discriminate between two values or objects based on some criteria. It means that if an object satisfies all the conditions specified by its parameters, then it will be returned as the result of the function. This can be useful in scenarios where the output should not depend on the input values but rather on the input's properties.
For example, consider a function that takes two integers and returns their sum:
```python
def add_numbers(a
nondiscriminating