How to implement predicates for Filter!(Pred, Tuple)

David Nadlinger see at klickverbot.at
Fri Nov 11 12:52:17 PST 2011


On 11/11/11 9:38 PM, Tobias Pankrath wrote:
> Awesome, thank you :) That should really make its way into phobos someday.
> However I wouldn't prefix everything with static, although it seems, that is
> the way phobos is going to do this. Instead I would use uppercase names for
> templates to distinguish them from normal functions.

Oh, and you might also be interested in this extended version which 
allows you to »skip« arguments, e.g. to bind only the second out of 
three parameters: https://gist.github.com/1359203

David


More information about the Digitalmars-d-learn mailing list