fn compact_gaps(
items: &[(Option<LineNumber>, Option<LineNumber>)],
) -> Vec<(Option<LineNumber>, Option<LineNumber>)>Expand description
Before:
10 – 11 – – 20 12 21
After:
10 20 11 – 12 21
The returned vec will contain no (None, None) pairs.
fn compact_gaps(
items: &[(Option<LineNumber>, Option<LineNumber>)],
) -> Vec<(Option<LineNumber>, Option<LineNumber>)>Before:
10 – 11 – – 20 12 21
After:
10 20 11 – 12 21
The returned vec will contain no (None, None) pairs.