pub fn programs_info(programs: &[Expr]) {
    let max_cost = programs.iter().map(|p| p.cost()).max().unwrap();
    let max_depth = programs.iter().map(|p| p.depth()).max().unwrap();
    println!("Programs:");
    println!("\t num: {}",programs.len());
    println!("\t max cost: {}",max_cost);
    println!("\t max depth: {}",max_depth);
}
/// print some info about a Vec of programs
print some info about a Vec of programs
print some info about a Vec of programs
pub fn programs_info(programs: &[Expr]) {
    let max_cost = programs.iter().map(|p| p.cost()).max().unwrap();
    let max_depth = programs.iter().map(|p| p.depth()).max().unwrap();
    println!("Programs:");
    println!("\t num: {}",programs.len());
    println!("\t max cost: {}",max_cost);
    println!("\t max depth: {}",max_depth);
}
pub fn programs_info ( programs : & [ Expr ] ) { let max_cost = programs . iter ( ) . map ( | p | p . cost ( ) ) . max ( ) . unwrap ( ) ; let max_depth = programs . iter ( ) . map ( | p | p . depth ( ) ) . max ( ) . unwrap ( ) ; println ! ( " " ) ; println ! ( " \t " programs len ( ) ) ; println ! ( " \t " max_cost ) ; println ! ( " \t " max_depth ) ; }
print some info about a Vec of programs
print some info about a Vec of programs
programs
&[Expr]
programs
&[Expr]