(xs: &[u64], ys: &[u64])
| 533 | yi += 1; |
| 534 | }, |
| 535 | std::cmp::Ordering::Greater => { |
| 536 | yi += 1; |
| 537 | }, |
| 538 | } |
| 539 | } |
| 540 | result |
| 541 | } |
| 542 | |
| 543 | fn is_subset(xs: &[u64], ys: &[u64]) -> bool { |
| 544 | let mut yi = 0; |
| 545 | for &x in xs { |
| 546 | while yi < ys.len() && ys[yi] < x { |
| 547 | yi += 1; |
| 548 | } |
| 549 | if yi >= ys.len() || ys[yi] != x { |
| 550 | return false; |
no test coverage detected