can I use Phobos to produce a memoized range? So it will calculate on access to an element if it needs to, but will return the cached value if it has been calculated before.
obviously it's trivial to do with a little aa cache. and I know
I can memoize a function, and turn the memoized version into an
infinite range. but suppose I have a lazy function that returns
a finite range, and its expensive to calculate.
- best way to memoize a range? Laeeth Isharc via Digitalmars-d-learn
- Re: best way to memoize a range... Jakob Ovrum via Digitalmars-d-learn
- Re: best way to memoize a range... John Colvin via Digitalmars-d-learn
- Re: best way to memoize a r... Laeeth Isharc via Digitalmars-d-learn