Comment
Comment by mcaruso
Let's take a look at how we might write a function like `map` the (pure) functional way in a language like JS:
We're not keeping track of any state here. Using recursion you don't need to keep track of the current element in the list for example (when you run this on a physical machine it will of course, but not at the conceptual level).