xxxxxxxxxx
void main()
{
import std.algorithm.comparison : cmp;
// Note that "a > b" is the reverse of the normal.
static assert(cmp!"a > b"("1", "2") > 0);
// Following fails because cmp is using the predicate "a > b"
// to compare the lengths of the ranges.
static assert(cmp!"a > b"("abc", "abcd") < 0,
`Should be negative because "abc" is a prefix of "abcd"!`);
}