debtmap 0.20.0

Code complexity and technical debt analyzer
Documentation
1
2
3
4
5
fn split_by_zero(items: &[i32]) -> Vec<Vec<i32>> {
    items.split(|&x| x == 0)
        .map(|slice| slice.to_vec())
        .collect()
}