On Sunday, 2 June 2019 at 15:48:54 UTC, Rnd wrote:
I have recently started using Dlang, hence this basic question. Thanks for your insight.

map and filter are templates in D, and !(...) is D's syntax for passing arguments to templates:

map!(x => x*x)([1, 2, 3, 4, 5])
     ^         ^
     |         |
     |         +- This array is a normal function argument
     |
     +- This lambda is a template argument

Reply via email to