static Map mergeMappings(Map a, Map b) { for (A var : keys(a)) if (b.containsKey(var) && neq(a.get(var), b.get(var))) null; // fail ret mergeMaps(a, b); }