Absolutely! Using map purely for the side-effect of incrementing a counter is a little obtuse. The code is a lot cleaner using the return value of map (or grep).
In reply to Re^2: Map function slowing down program
by mpeever
in thread Map function slowing down program
by ashnator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |