We talk of these functions that compute a result as pure functions and these that do something as impure, and I like to talk of them as subroutines rather than functions because they aren't functions in the mathematical sense; they have an effect on the world. 