Ranges and random numbers -- again
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Tue Jun 18 02:31:30 PDT 2013
On 06/17/2013 09:36 PM, monarch_dodra wrote:
> Being able to *save* a random range (which your proposal would prevent) can have
> useful applications too. It means you can iterate on the same random number
> sequence several times, lazily, without having to store the results in a buffer.
If I recall right, there are a number of Phobos entities that make use of the
opportunity to .save -- some of std.algorithm, I think? I'll browse the code
myself, but if anyone could point me to some explicit examples, it would be very
useful.
More information about the Digitalmars-d
mailing list