fn zip_functions(
    signatures: Option<Vec<TypeIndex>>,
    codes: Option<Vec<(ResultType, Expression)>>,
) -> Option<Vec<Function>> {
    codes.zip(signatures).map(|(codes, signatures)| {
        codes
            .into_iter()
            .zip(signatures)
            .map(|((locals, body), kind)| Function::new(kind, locals, body))
            .collect()
    })
}
/// Zips code and function sections into a function syntax type.
Zips code and function sections into a function syntax type.
Zips code and function sections into a function syntax type .
fn zip_functions(
    signatures: Option<Vec<TypeIndex>>,
    codes: Option<Vec<(ResultType, Expression)>>,
) -> Option<Vec<Function>> {
    codes.zip(signatures).map(|(codes, signatures)| {
        codes
            .into_iter()
            .zip(signatures)
            .map(|((locals, body), kind)| Function::new(kind, locals, body))
            .collect()
    })
}
fn zip_functions ( signatures : Option < Vec < TypeIndex > > , codes : Option < Vec < ( ResultType , Expression ) > > , ) -> Option < Vec < Function > > { codes . zip ( signatures ) . map ( | ( codes , signatures ) | { codes . into_iter ( ) . zip ( signatures ) . map ( | ( ( locals , body ) , kind ) | Function :: new ( kind , locals , body ) ) . collect ( ) } ) }
Zips code and function sections into a function syntax type.
Zips code and function sections into a function syntax type .
signatures
Option<Vec<TypeIndex>>
codes
Option<Vec<(ResultType, Expression)>>
signatures
Option<Vec<TypeIndex>>
codes
Option<Vec<(ResultType, Expression)>>