I think the problem is going to be the "negligible cost". Without unrolling the loop internally, you'd still be forced to evaluate an if, unrolling the loop adds complexity etc.
Thanks for the snippet anyway, whether or not it is actually worth the trouble, it's still a nice trick.
-Scott
In reply to Re: Doing "it" only once
by 5mi11er
in thread Doing "it" only once
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |