Hello,
How to combine list items to tree branches accordingly to their values?
For example I have the following list:
[1,1,1,2,2,2,3,3,4,4,1,1,1,2,2,2,3,3,4,4]
From this list I would like to get the following tree:
[1,1,1,1,1,1]
[2,2,2,2,2,2]
[3,3,3,3]
[4,4,4,4]
So all the same values will be in one separate branch.
Thank you in advance!
