On Friday, 24 July 2020 at 20:34:17 UTC, aberba wrote:
Wrote something on the feature that makes D my favorite programming languagehttps://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