Function Composition
user1234
user1234 at 12.de
Wed Jan 24 21:34:26 UTC 2024
On Wednesday, 24 January 2024 at 21:30:23 UTC, user1234 wrote:
> On Wednesday, 24 January 2024 at 21:12:20 UTC, atzensepp wrote:
>> [...]
>> what a bummer!
>
> Have you tried
> https://dlang.org/phobos/std_functional.html#compose ?
Well this violates the second requirement:
> the composition itself requires additional lambda expressions
> I would like to write compose(f,g)
I just realize, as this requires template specialization with
`!`. But this is how D works with these kind of things.
More information about the Digitalmars-d-learn
mailing list