I have an array
x = [[2,5,16,26],[5,28,35,46],[1,9,28,54,60,102],[...]...]
Arrays within the array do not have fixed sizes, they can contain 1 to N elements. How do I get a new array y
with the subtraction of each element by its predecessor, if any. Ex:
[[3,11,10],[23,7,11],[8,19,26,6,42]
The 3 is the subtraction of 5-2, 11, 16-5 etc. And in this array y
the index starting with 1.