The results of the two data are different. Does anyone know the reason?
data1 = {1, 2, 3, 4, 3, 2, 1, 5, 6, 7, 4, 3};
data2 = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 39, 40, 41, 42, 43, 44, 45, 46};
Split[data1, Less]
Split[data2, Less]
result 1: {{1, 2, 3, 4}, {3}, {2}, {1, 5, 6, 7}, {4}, {3}}
result 2: {{5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 39, 40,
41, 42, 43, 44, 45, 46}}
But the answer I want is :
Split[data2, Less] = {{5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}, {39, 40, 41, 42, 43, 44, 45, 46}}