memoize

Andrew Wiley debio264 at gmail.com
Mon Jan 3 22:05:04 PST 2011


On Mon, Jan 3, 2011 at 10:15 PM, Andrei Alexandrescu <
SeeWebsiteForEmail at erdani.org> wrote:

> I just added a higher-order function memoize to std.functional which I
> think is pretty cool. See the docs here:
>
>
> http://d-programming-language.org/cutting-edge/phobos/std_functional.html#memoize
>
> I'm also thinking of adding that cutting-edge directory as a place for
> storing documentation for commits that are in flux but not officially
> released yet.


Pretty sweet, but if I'm understanding this correctly, the memoized version
of a pure function isn't pure, is it? Is there any way to get that to
happen?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110104/b6d4cf1d/attachment.html>


More information about the Digitalmars-d mailing list