bearophile wrote:
BCS Wrote:Cool template function literals sounds interestingMay I have one example of them? I am looking in the docs, but I am not finding anything...
void foo(alias f)()
{
f(3, 4);
}
foo!((x,y){return x * y;))();
bearophile wrote:
BCS Wrote:Cool template function literals sounds interestingMay I have one example of them? I am looking in the docs, but I am not finding anything...
void foo(alias f)()
{
f(3, 4);
}
foo!((x,y){return x * y;))();