xxxxxxxxxx
import std.algorithm;
import std.range;
struct S
{
int x;
int opCmp(const(S) other) const {
import std.stdio;
writeln("comparing ", x, " to ", other.x);
if(other.x > x) return -1;
return other.x < x;
}
}
void main()
{
[S(1),S(2),S(3),S(4),S(5),S(6)].assumeSorted.find(S(3));
}