Closed dovinmu closed 1 year ago
Possibly related, this is from the README: "By default, each operator is applied across the deepest nested table."
How do you apply an operator to the parent of the deepest nested table?
In APL/etc the operators are scalar by default, but can be reranked with a "rank" adverb: https://xpqz.github.io/learnapl/rank.html
So maybe we make something like !!rerank 2
which would change the rank of the previous operator to be the parent of the deepest nested table. (0 would be the scalar elements, 1 would be the deepest table, 2 is its parent, etc).
@dovinmu When you want to apply an operator to a parent table, please open a new issue with the script/snippet, and we'll make it work. I don't think we've needed this case yet.
Also let's try to figure out where and how to explain the scoping rules. We've talked through it a few times in chat and I'm not sure which (if any) of the explanations has been most illuminating. (Also we're still figuring it out ourselves :)
Closing this for now.