Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Reminder to self: must use Memoize more often!

by tobyink (Canon)
on Jan 12, 2013 at 14:40 UTC ( [id://1013043]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @fib6_cache;
    sub fib6 {
    ...
            : ( $fib6_cache[ $n-1 ] //= fib6($n-1) )
            + ( $fib6_cache[ $n-2 ] //= fib6($n-2) );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1013043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-19 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found