Man. I tried Googling this for hours and never found anything. Then you shared the solution and I thought, “how did I miss that?” I plugged in the title of the post into Google and poof! It was the number 2 answer (this post was number 1)! Crazy. Thanks!
One thing I left out is a need to know which indices where combined. In the example it would be a list like {{0},{1},{2,3,4,5,},{6}}. Any ideas?
–
Sorry, bad example - it’s the same list! I think I found a solution.
This list – {{0},{2,4},{1},{3,5},{3,4,2},{6},{5,2}} – returns this merged list (sorting doesn’t really matter here) – {{0},{1},{6},{2,3,4,5}} – and this list of indices of the original list that matches – {{0},{2},{5},{1,3,4,6}}