Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi.
Is there a somewhat resonable way to start with a complex nested objects like

and end up with either of those

which means that every number existing within becomes zero and every symbol (or string of symbols) becomes some placeholder symbol (I chose '*' for no particular reason).
How should I accomplish this?
Solved! Go to Solution.
Pranas Pranas wrote:
Hi.
Is there a somewhat resonable way to start with a complex nested objects like
and end up with either of those
which means that every number existing within becomes zero and every symbol (or string of symbols) becomes some placeholder symbol (I chose '*' for no particular reason).
How should I accomplish this?
For values of "reasonable" ...

Stuart
Pranas Pranas wrote:
Hi.
Is there a somewhat resonable way to start with a complex nested objects like
and end up with either of those
which means that every number existing within becomes zero and every symbol (or string of symbols) becomes some placeholder symbol (I chose '*' for no particular reason).
How should I accomplish this?
For values of "reasonable" ...

Stuart
This, kind sir, is beyond good.
That would have taken me a long time...
Pranas Pranas wrote:
This, kind sir, is beyond good.
That would have taken me a long time...
No worries. Although many people don't like it and go out of their way to avoid it, Recursion is your Friend with nested arrays (and lots of other things!). ![]()
Stuart
