Why does compose from std.functional return a templated function

Daniel Kozak kozzi11 at gmail.com
Wed Sep 16 10:53:23 UTC 2020


On Wed, Sep 16, 2020 at 12:50 PM Daniel Kozak <kozzi11 at gmail.com> wrote:

>
>
> On Wed, Sep 16, 2020 at 12:00 PM Jan Hönig via Digitalmars-d-learn <
> digitalmars-d-learn at puremagic.com> wrote:
>
>> ...
>>
>> My main question is why? Is there something, which I am missing,
>> that explains, why it is beneficial to return a templated
>> function?
>>
>> (maybe, because I might want to compose together templated
>> non-initialized functions?)
>
>
(maybe, because I might want to compose together templated
non-initialized functions?)

Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20200916/48b2bc4c/attachment.htm>


More information about the Digitalmars-d-learn mailing list