pub fn batch_decode<T: AbiEncoding + Ord>(
    mut batch: Vec<(T, AbiDecodeLocation)>,
) -> Vec<yul::Statement> {
    batch.sort();
    batch.dedup();

    batch
        .into_iter()
        .map(|(types, location)| decode(types, location))
        .collect()
}
/// Creates a batch of decoding function for the given types and decode
/// locations.
///
/// It sorts the functions and removes duplicates.
Creates a batch of decoding function for the given types and decode
locations.

It sorts the functions and removes duplicates.
Creates a batch of decoding function for the given types and decode locations . It sorts the functions and removes duplicates .
pub fn batch_decode<T: AbiEncoding + Ord>(
    mut batch: Vec<(T, AbiDecodeLocation)>,
) -> Vec<yul::Statement> {
    batch.sort();
    batch.dedup();
    batch
        .into_iter()
        .map(|(types, location)| decode(types, location))
        .collect()
}
pub fn batch_decode < T : AbiEncoding + Ord > ( mut batch : Vec < ( T , AbiDecodeLocation ) > , ) -> Vec < yul :: Statement > { batch . sort ( ) ; batch . dedup ( ) ; batch . into_iter ( ) . map ( | ( types , location ) | decode ( types , location ) ) . collect ( ) }
Creates a batch of decoding function for the given types and decode
locations.
Creates a batch of decoding function for the given types and decode locations .
batch
Vec<(T, AbiDecodeLocation)>
batch
Vec<(T, AbiDecodeLocation)>