Obsecure problem 2

jfondren julian.fondren at gmail.com
Wed Aug 3 17:09:11 UTC 2022


On Wednesday, 3 August 2022 at 16:59:53 UTC, pascal111 wrote:
> I tried to make a template that receive lambda expression to 
> apply it on a given range the user specifies, but I found 
> non-understood problem:

Compare with:

```D
auto foo(Range)(Range range) { // remove isInputRange!T test
...
          lolo.foo!(a=>a+2); // call foo!(f)() rather than 
foo!()(f)
```



More information about the Digitalmars-d-learn mailing list