I have a problem i have been working on and cant seem to get it.
I have a data tree with different lists in it. Now I want to partition this data based on whether a value jumps from consecutive numbers to a higher number. (instead of N+1, it jumps to N+…).
example: data = 1,2,3,4,5,6,22,23,24,25,26,27.
Now i want to partition this list into: 1,2,3,4,5,6 AND 22,23,24,25,26,27.
For one list this can be done manually, but i have many of these lists in my data tree of which the jump in value of the consecutive numbers is not constant. How do i partition this parametrically?
many thanks in advanced!