difft::parse::syntax

Function zip_repeat_shorter

Source
pub(crate) fn zip_repeat_shorter<Tx: Clone, Ty: Clone>(
    lhs: &[Tx],
    rhs: &[Ty],
) -> Vec<(Tx, Ty)>
Expand description

Zip lhs with rhs, but repeat the last item from the shorter slice.