static bool tripleContains(Triple t, O o) { ret t != null && (t.a == o || t.b == o || t.c == o); }