newbie question: can D do this?

Philippe Sigaud philippe.sigaud at gmail.com
Thu Dec 22 08:44:59 PST 2011


On Thu, Dec 22, 2011 at 16:45, clk <clk at clksoft.com> wrote:
> Philippe,
> I don't understand the example below to simulate the list comprehension
> syntax.  Are input1, input2 and input3 ranges?

Yes, inputs are ranges. Sorry, I was perhaps a bit hasty in answering.
The code is on github:

https://github.com/PhilippeSigaud/dranges

comp() is defined into the algorithm.d module. Github does not host
the docs, but I generated them on dsource a long time ago:

http://svn.dsource.org/projects/dranges/trunk/dranges/docs/algorithm.html

(search for comp, there is no anchor. I think there wasn't a way to
make them easily on DDoc a year ago)


More information about the Digitalmars-d-learn mailing list