Ad
Code
Diff
  • pub fn bool_check(b: [bool; 3]) -> bool {
        b.into_iter().filter(|&b| b).count() >= 2
    }
    • pub fn bool_check(b: [bool; 3]) -> bool {
    • b.iter().filter(|&&x| x).count() >= 2
    • b.into_iter().filter(|&b| b).count() >= 2
    • }