How to split a list into a given number of lists, taking the elements in order and distributing them to the sub-lists (so not partitioning the list)?
I would like to
Something like this could put all your lists into a map, then you just need to get the sub-lists out of the map
int count = 0;
Map> mapLists = list.stream()
.peek(i -> count ++)
.collect(Collectors.groupingBy(i -> count % numOfSubLists))
Another way using Guava
https://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/Lists.html#partition(java.util.List,%20int)
List> lists = Lists.partition(list, noOfPartitions);