Re: loop to remove negativesby Athanasius (Abbot)
|on May 15, 2012 at 04:31 UTC||Need Help??|
You should prefer the more idiomatic syntax in Eliya’s solution.
Just thought I’d mention that the code snippet you give, which you say “doesn’t seem to do the job,” should actually work fine, except that there’s a semicolon missing after $i=0; in the for loop:
Athanasius <°(((>< contra mundum