Transform list or set regardless of nesting structure - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Transform list or set regardless of nesting structure (/thread-24916.html) |
Transform list or set regardless of nesting structure - blubb - Mar-10-2020 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?. RE: Transform list or set regardless of nesting structure - micseydel - Mar-10-2020 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. RE: Transform list or set regardless of nesting structure - ibreeden - Mar-10-2020 It seems to me the same question as Finding value in nested dictionaries with lists. Can you look at that? |