Function Composition

Inkrementator anon at anon.org
Mon Jan 29 19:24:51 UTC 2024


On Thursday, 25 January 2024 at 18:44:26 UTC, atzensepp wrote:
> However this works:
> ```d
>   int delegate (int) td = (x) => 
> compose!(f,g,g,f,g,g,f,g,g,f)(x);
>
> ```

While not a real function pointer, this might already fit your 
needs.

```d
alias td = compose!(f,g);
```


More information about the Digitalmars-d-learn mailing list