You have been priming people to think in terms of functions. (Pure) Functions do not change. They map an input to an output, and can be substituted by a list, e.g. a function that tests for primality can can be performed by an (infinitely) long list.
You may want to describe impure functions for people without a functional programming background if you want to keep terminology like morality_john().
You have been priming people to think in terms of functions. (Pure) Functions do not change. They map an input to an output, and can be substituted by a list, e.g. a function that tests for primality can can be performed by an (infinitely) long list.
You may want to describe impure functions for people without a functional programming background if you want to keep terminology like morality_john().