Python's features, which requires D
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 23 03:58:32 PDT 2015
On Saturday, 23 May 2015 at 02:36:14 UTC, Dennis Ritchie wrote:
> For example, the code in Python looks quite natural:
>
> a = [[int(j) for j in input().split()] for i in range(n)]
>
> About D-code, I can not say:
>
>>auto a = stdin
>> .byLine
>> .map!(l => l.splitter.map!(to!int).array)
>> .take(n);
Well, list comprehension is built into language in python (and
not in D), such level of support is definitely more streamlined.
More information about the Digitalmars-d-learn
mailing list