-
I have a data structure like For each value in
...but that just returns strings when what I want is a list of lists. So how do I accumulate a list of lists? Also, I could be wrong, but it doesn't seem possible to specify parameter names when calling the sub-program. And instead the sub-program had to use the same variable name as would be set in the parent context. Ideally, passing name parameters would be possible. And if not, some clearer docs on working with sub-programs would be helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured it out. What I was missing is that when a sub-program access the current item in the each (using |
Beta Was this translation helpful? Give feedback.
Figured it out. What I was missing is that when a sub-program access the current item in the each (using
this
), it can also modify that item. Can't decide if I absorbed too much FP or was just being dumb.