How to implement predicates for Filter!(Pred, Tuple)
David Nadlinger
see at klickverbot.at
Fri Nov 11 09:25:39 PST 2011
On 11/11/11 6:20 PM, Timon Gehr wrote:
> This is a sketch of how I would approach your problem. The "Curry"
> template automatically creates the nested template version from an
> unnested one. You are then allowed to use both IsEqual!(val) and
> IsEqual!(val1, val2).
> […]
See also: https://gist.github.com/1191885#L27
Reminds me that I really have to put together a std.meta proposal – if I
would only find time to do so…
David
More information about the Digitalmars-d-learn
mailing list