debtmap 0.20.0

Code complexity and technical debt analyzer
Documentation
1
2
3
4
fn find_position(items: Vec<i32>, target: i32) -> Option<usize> {
    items.iter()
        .position(|&x| x == target)
}