// Count the multiset intersection of two sorted vectors while honoring repeated keys on both sides. pub fn sorted_overlap_count(left: vector, right: vector) -> i64 { let mut i = 0; let mut j = 0; let mut total = 0; while iat(right,j) { j += 1; } else { total += 1; i += 1; j += 1; } } } total }