March 10, 2018 General » Re: Lazy caching map()? | |||
|---|---|---|---|
| |||
...requirements, are you looking for std.functionl.memoize?
auto fun(int a) {
writeln("here");
return... | |||
January 15, 2018 Learn » Re: How do I get the value cache()? | |||
|---|---|---|---|
| |||
...that string, rather than the string! The memoize function is closer to what you want... | |||
January 05, 2018 Issues » [Issue 16079] memoize should cache objects too | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=16079 --- Comment #4 from github-bugzilla@puremagic... | |||
January 03, 2018 Issues » [Issue 18110] most of phobos should be @safe-ly useable | |||
|---|---|---|---|
| |||
...cgi?id=18170 [Issue 18170] std.functional.memoize should be usable in @safe https://issues... | |||
January 03, 2018 Issues » [Issue 18170] std.functional.memoize should be usable in @safe | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=18170
Seb <greensunny12@gmail.com> changed:
What... | |||
January 03, 2018 Issues » [Issue 18170] New: std.functional.memoize should be usable in @safe | |||
|---|---|---|---|
| |||
...18170
Issue ID: 18170
Summary: std.functional.memoize should be usable in @safe
Product: D... | |||
December 26, 2017 Learn » Re: Can I use memoize with a non-static struct method? | |||
|---|---|---|---|
| |||
...S {
int x;
auto gen() @property {
return memoize!doGen(this, x);
}
}
void main() {
S s... | |||
December 26, 2017 Learn » Can I use memoize with a non-static struct method? | |||
|---|---|---|---|
| |||
something like this: The error I got is: I can't make doGen static because... | |||
December 21, 2017 Learn » Re: Behavior of joining mapresults | |||
|---|---|---|---|
| |||
...joiner);
writeln("-------------------------------");
writeln((iota(1, 5).map!(memoize!parse)).joiner);
writeln("-------------------------------");
writeln((iota(1, 5... | |||
December 21, 2017 Learn » Re: Behavior of joining mapresults | |||
|---|---|---|---|
| |||
...thing in an array than to use memoize. e.g. auto arr = iota(1, 5... | |||
Copyright © 1999-2021 by the D Language Foundation