On Mar 10, 9:35 am, RobG <[email protected]> wrote:
[...]
> So in the above case it is clearer and sometimes faster (rarely
> slower) to write:
>
>   while (--i) {
>     a = b[i];
>   }

Ugh, that will skip the last member, it should have been:

  while (i--) {a = b[i];}

or

  while (i) {a = b[--i];}

or similar.


--
Rob

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to