How to check all values in a range are equal to some predicate?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Sep 24 19:14:30 PDT 2011
I want to use this in my unittests:
assert(allEqual(Foo(1), obj1, obj2, obj3));
How would you implement a function like allEqual(needle, objects...) ?
Maybe via reduce?
More information about the Digitalmars-d-learn
mailing list