Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Split range 0 to M into N non-overlapping (roughly equal) ranges.by BrowserUk (Patriarch) |
on Mar 12, 2011 at 17:25 UTC ( [id://892841]=note: print w/replies, xml ) | Need Help?? |
I can make it differently, but no cleaner It always bugs me when something notionally so simple doesn't seem to have a clean solution. I do hope someone will prove me wrong. In use, it doesn't matter if the ranges vary by more than the minimum. Up to 1% variability, smallest to largest, would have no appreciable affect. But it still feels like I'm missing some trick that would allow a simple and direct implementation. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|