I have a guide tree which suffered a simple transformation: from a simple list (single branch) to a multi-branch tree were each branch groups consecutive values from the original list that are equal.
What I would like to do is NOT to implement the same procedure to my other lists BUT make them follow the exact same arranging strategy that the first list suffered:
Hi there – if I’m understanding you correctly: you could use “Partition List” with a pattern consisting of the tree branch lengths (use “List Length” to get each branch’s length).
I’ll admit I’m a bit unsure about what you want. So if you aren’t getting the help you’re looking for, you could try rephrasing the question using concrete examples of your before and after condition.
even if List Length + Partition List for sure works well in this simple case, please note List Length does not know about paths
I’d instead suggest to use the dedicated component called “Unflatten”, which is the opposite operation of Flattening, performed using a guide data tree as reference, from which paths addresses are also taken
using Unflatten is fine as long as you just want to divide a list of n items into branches following a reference data tree with the same total number of items n
regarding the thing that items are also shuffled/sorted, it means you have to go through a List Item to rebuild that particular structure
so, in this case -if now I have understood correctly- you use the Member index on the set of the first tree, then List item to partition that list, and if you want to follow the same partitioning rule → you can just use the very same List Item on a different list of same number of items, like:
Unflatten is useful just if the only one operation you want to do is partitioning the list into a data tree, keeping untouched the initial sorting order of its items