chandra sekaran on Fri, 11 May 2018 09:05:20 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Any method to find consecutive sequence in integer array?


find_consecutive [1,2,3,5,6,9,10,2,3,4]
=> [[1, 2, 3], [5, 6], [9, 10], [2, 3, 4]]

--
B.Chandrasekaran