Skip to main content

zip_exact

Function zip_exact 

Source
pub fn zip_exact<A: Clone, B: Clone>(
    a: &[A],
    b: &[B],
) -> Result<Vec<(A, B)>, String>
Expand description

Zip two slices, failing if they have different lengths.