"The world is better off" for people who live in suburbs. Those who live in cities now subsidize the suburbanites quality of life by sacrificing land area (roads, parking) and pollution (particulate, noise) to support…
The definition of "pure function" I'm familiar with from functional programming has no side effects including I/O. Assuming 'printToConsole' is performing I/O, you're describing a impure function.
"The world is better off" for people who live in suburbs. Those who live in cities now subsidize the suburbanites quality of life by sacrificing land area (roads, parking) and pollution (particulate, noise) to support…
The definition of "pure function" I'm familiar with from functional programming has no side effects including I/O. Assuming 'printToConsole' is performing I/O, you're describing a impure function.