Thanks for that catch remiah. ++
I switched the benchmark methods from 'timethese' to 'cmpthese' at the same time that I fixed the test function calls, and then simply had a brain fart when I looked at the results. I've edited my post accordingly.
Using foreach is faster than map in this example. My faith is restored (whew!).
In reply to Re^6: Efficiency of map vs. more verbose basic/fundamental code
by ruzam
in thread Efficiency of map vs. more verbose basic/fundamental code
by marquezc329
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |