John Earnest also details how trees are handled in K (an array based language invented by Arthur Whitney).
https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Trees.m...
And I translated some of Aaron Hsu's APL ideas into k5. With a little massaging they work just as well: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/key...