How to modify nested (to some degree) objects?
Hello.
This is crucial to my project yet I have to admit I've hit a brick wall and cannot figure this out...
Let's say there is an object X and a defined transformation function transf().
Now there may be a need to directly transform my object - it would be transf(X) - and that works perfectly fine.
There may be a need to transform my object one step "deeper" - it would be vectorized transf(X) - and that works perfectly fine as well.
However how about transforming my object N steps "deeper"? Like generating all such results:

Objects' structure is not known beforehand and is not fixed so I cannot write loops (while, for). Vectorization, recurssion has to be the answer... If it was C++ I would pass "memory address" and alter different portion of my object that way, but I'm not aware of a similar concept in Mathcad.

