Skip to content
Snippets Groups Projects
Verified Commit 40e19846 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

add doc to `is_inside`

parent 327724e5
No related branches found
No related tags found
1 merge request!145complete the FEC and "linear algebra" tests
This commit is part of merge request !145. Comments created here will be created in the context of that merge request.
......@@ -217,6 +217,10 @@ mod tests {
F::from_le_bytes_mod_order(&n.to_le_bytes())
}
/// `is_inside(set, x)` is true iif `x` fully contains one of the lists from `set`
///
/// > **Note**
/// > see [`exclusion`] for some example
fn is_inside(set: &[Vec<usize>], x: &[usize]) -> bool {
set.iter().any(|y| y.iter().all(|z| x.contains(z)))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment