Creates a list with slots, containing the start and end indeces corresponding to the partitions of x required to run the number of parallel tasks

getPartitionIndeces(x, tasks = tasks)

Details

Parsing x, is it vector, list? or is it number of repetitions (i.e. x is just a number)? This just to calculate the number of times the FUN has to be executed