map/filter/reduce: use functions or delegates or both?

Daniel Keep daniel.keep.lists at gmail.com
Thu Mar 15 17:25:52 PDT 2007


Falk Henrich Wrote:

> Hi!
> 
> ...
> 
> Is there any solution to this dilemma?
> 
> Thanks for advice.
> 
> Falk

I implemented these a while back using rather a lot of templates :)  You can see the implementation here: http://www.prowiki.org/wiki4d/wiki.cgi?DanielKeep/functools

Basically I solved the problem by using neither delegates or functions.  Instead, I just used a template type called "tOp".

Hope this helps :)

    -- Daniel



More information about the Digitalmars-d-learn mailing list