Generators in D

so so at so.so
Thu May 12 07:52:33 PDT 2011


> void genSquares(out int result, int from, int to)
>          yield!result(x * x);

Wow! i had no idea about this feature! (Variables as template parameters)
Do we have any documentation, usage example (anything!)? Pretty please.


More information about the Digitalmars-d mailing list