so I noticed that when you make a function, it doesn't seem to have access to the scope above it. The pictured example is trivial, I know, but how do I make it so I can capture something from the upper scope into a closure like this?
My specific use case was using the array function that allows you to pass in a function which takes index to construct all the members, but I need information from outside that to properly create all the members.