debtmap 0.20.0

Code complexity and technical debt analyzer
Documentation
1
2
3
4
5
6
fn flatten_and_double(nested: Vec<Vec<i32>>) -> Vec<i32> {
    nested.into_iter()
        .flat_map(|v| v)
        .map(|x| x * 2)
        .collect()
}