does have coordinate 100.
Wait, are your suggesting to use the 2nd to 101st index for coordinates 1 to 100? And here I thought the alternative would have been to to use the 1st index to the 100th index for coordinates 1 to 100. That's even worse. You can't use the mod at all even though the situation calls for it.
not all genomes are circular. What would you do about those?
It's not relevant, but I'd use the first index of the array for the first element of the genome. I'd personally use that for circular genomes too. What I did was propose a compromise.
(if the genome is circular scalar(@arr) == genome size, but if it's linear scalar(@arr) == genome size + 1). Confusing...
Exactly. The size of the genome (@genome) should be the size of the genome.
Anyway, I must admit I'm not sure why are we focusing on this.
To point out how silly it is to be focusing on such.
But it is pertinent, as choosing a bad coordinate system will just add operations, slowing things down.
In reply to Re^5: Can I speed this up? (repetitively scanning ranges in a large array)
by ikegami
in thread Can I speed this up? (repetitively scanning ranges in a large array)
by daverave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |