How to transform flat array to a list of hierarchical trees based on a field with a list of enums denoting the level
I’m trying to transform a flat list of account balances to a list of hierarchical account trees based on a list of unique codes. I’m struggling with how to solve this as I can’t see what steps to take.
How to transform flat array to a list of hierarchical trees based on a field with a list of enums denoting the level
I’m trying to transform a flat list of account balances to a list of hierarchical account trees based on a list of unique codes. I’m struggling with how to solve this as I can’t see what steps to take.