Function difft::parse::syntax::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.