The most twisted D code (you've) ever written
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Fri Oct 12 09:51:51 PDT 2007
Myron Alexander wrote:
> I wonder if there are any plans for adding list comprehensions to D. Not
> a question, just a musing.
>
> Thanks for the info.
So am I. (Though in D they'd probably be array comprehensions)
And generator expressions would be pretty cool too. Note: not full
generators, those probably can't be done without stackthreads. Generator
expressions are a bit more limited, but are a nice syntax to define an
iterator that generates elements while opApply'ing over it.
More information about the Digitalmars-d
mailing list