Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Golfing a fibonacci number generatorby Codon (Friar) |
on Nov 03, 2006 at 21:11 UTC ( [id://582169]=note: print w/replies, xml ) | Need Help?? |
Well, I'm not exactly addressing your math, but I can shave a couple of characters off your map:
By changing the map to use the coderef syntax, you eliminate the need for the comma between the operation and the operands. You can also get rid of that last semicolon in the map block, as it is uneeded. My personal fibonacci generator is:
Ivan Heffner Sr. Software Engineer, DAS Lead WhitePages.com, Inc.
In Section
Obfuscated Code
|
|