MCPcopy Create free account
hub / github.com/argumentcomputer/ix / is_subset

Function is_subset

crates/kernel/src/level.rs:535–547  ·  view source on GitHub ↗
(xs: &[u64], ys: &[u64])

Source from the content-addressed store, hash-verified

533 yi += 1;
534 },
535 std::cmp::Ordering::Greater => {
536 yi += 1;
537 },
538 }
539 }
540 result
541}
542
543fn 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;

Callers 3

subsumptionFunction · 0.85
covers_constFunction · 0.85
covers_varFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected