Search

March 10, 2018
General »
...requirements, are you looking for std.functionl.memoize?

auto fun(int a) {
    writeln("here");
    return...
January 15, 2018
Learn »
...that string, rather than the string!

The memoize function is closer to what you want...
January 05, 2018
Issues »
https://issues.dlang.org/show_bug.cgi?id=16079

--- Comment #4 from github-bugzilla@puremagic...
January 03, 2018
Issues »
...cgi?id=18170
[Issue 18170] std.functional.memoize should be usable in @safe
https://issues...
January 03, 2018
Issues »
https://issues.dlang.org/show_bug.cgi?id=18170

Seb <greensunny12@gmail.com> changed:

           What...
January 03, 2018
Issues »
...18170

          Issue ID: 18170
           Summary: std.functional.memoize should be usable in @safe
           Product: D...
December 26, 2017
Learn »
...S {

    int x;

    auto gen() @property {
      return memoize!doGen(this, x);
    }

  }

  void main() {
    S s...
December 26, 2017
Learn »
something like this:

The error I got is:

I can't make doGen static because...
December 21, 2017
Learn »
...joiner);
    writeln("-------------------------------");
    writeln((iota(1, 5).map!(memoize!parse)).joiner);
    writeln("-------------------------------");
    writeln((iota(1, 5...
December 21, 2017
Learn »
...thing in an array than to use memoize. e.g.

auto arr = iota(1, 5...
1 2 3 4 5 6 7 8
Next ›   Last »