in reply to Re^4: When should I use map, for?
in thread When should I use map, for?
It does taint the results... but that's just the point. The map itself isn't faster, but it allows you to avoid the creation of the array. In that sense it doesn't taint the results... the taint is the result. If there was a way to do for_s() without the extra array, then my results would be skewed.
So, perhaps my point, if in fact I have one... is that a pure map is likely never faster than a pure for... but that's not to say that map is never a better solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: taint == result
by shemp (Deacon) on May 20, 2005 at 17:03 UTC |