I don't find that to be particularly clean. It uses more intermediate variables and terms.
Efficiency isn't a consideration here as this usually precedes the spawning of N threads that each iterate over $M/$N elements of data.
In reply to Re^2: Split range 0 to M into N non-overlapping (roughly equal) ranges.
by BrowserUk
in thread Split range 0 to M into N non-overlapping (roughly equal) ranges.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |