Python Forum

Full Version: Transform list or set regardless of nesting structure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

is there a convenience function that iterates over arbitrarily nested lists, i.e. lets one transform the 'nodes' without worrying about the nesting structure?.
Can you show a code example of the input / output you're looking for? I doubt what you're looking for exists, but your question is too vague as-is to know for certain.
It seems to me the same question as Finding value in nested dictionaries with lists. Can you look at that?