fn compact_gaps(
items: &[(Option<LineNumber>, Option<LineNumber>)]
) -> Vec<(Option<LineNumber>, Option<LineNumber>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
Expand description
Before:
10 – 11 – – 20 12 21
After:
10 20 11 – 12 21
The returned vec will contain no (None, None) pairs.