func ChunkRange(numberOfElements, chunkCount, chunkSize, counter int) (int, int) {
	var (
		chunkStart = chunkSize * (counter - 1)
		chunkEnd   = chunkSize * (counter)
	)
	// last chunk may be smaller than the chunk size
	if counter == chunkCount {
		chunkEnd = numberOfElements
	}
	return chunkStart, chunkEnd
}
// ChunkRange returns the chunk start and end for an iteration.
ChunkRange returns the chunk start and end for an iteration.
// ChunkRange returns the chunk start and end for an iteration .
func ChunkRange(numberOfElements, chunkCount, chunkSize, counter int) (int, int) {
	var (
		chunkStart = chunkSize * (counter - 1)
		chunkEnd   = chunkSize * (counter)
	)
	if counter == chunkCount {
		chunkEnd = numberOfElements
	}
	return chunkStart, chunkEnd
}
func ChunkRange ( numberOfElements , chunkCount , chunkSize , counter int ) ( int , int ) { var ( chunkStart = chunkSize * ( counter - 1 ) chunkEnd = chunkSize * ( counter ) ) if counter == chunkCount { chunkEnd = numberOfElements } return chunkStart , chunkEnd }
ChunkRange returns the chunk start and end for an iteration.
ChunkRange returns the chunk start and end for an iteration .
// last chunk may be smaller than the chunk size