On Saturday, 25 July 2020 at 10:22:53 UTC, Andre Pany wrote:
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
Oop! Chaining the writeln too could have increased the wow
factor. I didn't see that.