Python's features, which requires D

weaselcat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 21 18:17:15 PDT 2015


On Friday, 22 May 2015 at 00:23:30 UTC, Dennis Ritchie wrote:
> Hi,
> I've collected some of Python's features. It seems to me that 
> they are not in the D!
>
> Surely all this is in the D? :)
> http://rextester.com/CNQQR3333

D doesn't have list comprehensions, so it's difficult to directly 
port these.
off the top of my head, the last one can easily be done with 
std.range.stride

>P.S. I think that all of this is written in D is much more lines 
>of code!
and they can be done in less with APL and J.


More information about the Digitalmars-d-learn mailing list