[Issue 12421] Allow simpler syntax for lambda template declarations
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jun 26 05:29:03 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=12421
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #6 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Workaround:
alias I(alias X) = X;
alias notEmpty = I!(a => a.filter!(b => b > 0.0).empty);
http://blog.thecybershadow.net/2015/04/28/the-amazing-template-that-does-nothing/
--
More information about the Digitalmars-d-bugs
mailing list