programming functionals (or functions that generate functions)
I have a problem where the solution I want is to use a function to generate a different function. Here's a toy example. I expect it to return [3,4,5]. it doesn't work as I hoped because apparently the passed argument (offset) isn't available to the anonymous function that is returned. My guess is that there is a way to do this with substitution, but I couldn't figure it out. funWrapper = Function(...