I am learning Dart. I have simple JS code that split array to number of parts like:
2: [1,2,4,6,8], [14,17,18,19] 3: [1,2,4], [6,8,14], [17,18,19] 4: [1,2], [4,6]