Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: use Memoize;

by sundialsvc4 (Abbot)
on Jul 17, 2018 at 20:12 UTC ( [id://1218694]=note: print w/replies, xml ) Need Help??


in reply to use Memoize;

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: use Memoize;
by Corion (Patriarch) on Jul 17, 2018 at 20:16 UTC

    Alternatively, instead of writing your own caching scheme, you could use a proven and documented approach, and use Memoize.

    Also, the technical term for what you describe as "simply a mathematical function that is intended to return a result" is "pure function" or a subroutine without side-effects. Because, as the documentation of Memoize says, it will cache the results of a function for identical input values.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found