Does D have anything like the generators of Python and some other languages?
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 29 17:57:05 PDT 2016
On Monday, 29 August 2016 at 21:24:52 UTC, A D dev wrote:
>
> Hi group,
>
> Does D have anything like the generators of Python and some
> other languages?
>
> Thanks.
There's a Generator class in std.concurrency. I haven't used
Python all that much so I can't say for certain whether it is the
same or not.
https://dlang.org/phobos/std_concurrency.html#.Generator
More information about the Digitalmars-d-learn
mailing list