I have different lists which, once joined and sorted, I'd like to split whenever an element from one of the lists appears again. For example:
r = {1, 3, 8}
s = {2, 7}
t = {0, 4, 5, 9}
Joined and sorted: {0, 1, 2, 3, 4, 5, 7, 8, 9}
The output I'm looking for is: {{0, 1, 2}, {3, 4}, {5, 7, 8}, {9}}
How can I do it?