Better lambdas!!!!!!!!!!

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 10 13:51:16 PDT 2015


On Thursday, 10 September 2015 at 19:37:53 UTC, Ola Fosheim 
Grøstad wrote:
> How about just having numbered parameters like this:
>
> { $2 < ($1*$2) }

The string lambdas Phobos supports basically does this:

`b < a*b`

would work in there. These are falling out of favor with the new 
syntax in the language, but they are still supported by most the 
library.


More information about the Digitalmars-d mailing list