|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Re: When would you choose foreach instead of map?by BrowserUk (Patriarch) |
| on May 20, 2004 at 22:13 UTC ( [id://355152]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Is it possible to generate the result 'X' in such a way that I can automatically deduce the method that was used to generate that result (without looking at the source code) by evaluating one or more quantifiable measures of fitness? Where 'X' is the sum of the numbers 1 .. 1_000_000.
The programs (in no particular order). and
External metric: One of them uses 3MB, the other 96MB :) Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"Think for yourself!" - Abigail
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||