Article: the feature that makes D my favorite programming language

Andre Pany andre at s-e-a-p.de
Sat Jul 25 10:22:53 UTC 2020


On Friday, 24 July 2020 at 20:34:17 UTC, aberba wrote:
> Wrote something on the feature that makes D my favorite 
> programming language
>
> https://opensource.com/article/20/7/d-programming

Great article. I assume you didn't chained writeln by purpose, 
same for import std?

```
import std;

int[] evenNumbers(int[] numbers)
{
     return numbers.filter!(n => n % 2 == 0).array;
}

void main()
{
     [1, 2, 3, 4].evenNumbers.writeln;
}
```

Kind regards
Andre


More information about the Digitalmars-d-announce mailing list