Function advent_of_code_2022::day_4::count_pairs_matching
source · fn count_pairs_matching(
pairs: &Vec<((u32, u32), (u32, u32))>,
predicate: fn(_: ((u32, u32), (u32, u32))) -> bool
) -> usize
Expand description
Given a list of elf pairs, count those that match the given predicate