fn read_file(filename: &str) -> Vec<Vec<usize>> {
    let f = File::open(filename).unwrap();
    let f = BufReader::new(f);

    let mut v = vec![];
    for line in f.lines() {
        v.push(vec![]);
        for value in line.unwrap().split(',') {
            v.last_mut()
             .unwrap()
             .push(value.parse().unwrap());
        }
    }
    v
}
/// Read a file into a vector
Read a file into a vector
Read a file into a vector
fn read_file(filename: &str) -> Vec<Vec<usize>> {
    let f = File::open(filename).unwrap();
    let f = BufReader::new(f);
    let mut v = vec![];
    for line in f.lines() {
        v.push(vec![]);
        for value in line.unwrap().split(',') {
            v.last_mut()
             .unwrap()
             .push(value.parse().unwrap());
        }
    }
    v
}
fn read_file ( filename : & str ) -> Vec < Vec < usize > > { let f = File :: open ( filename ) . unwrap ( ) ; let f = BufReader :: new ( f ) ; let mut v = vec ! [ ] ; for line in f . lines ( ) { v . push ( vec ! [ ] ) ; for value in line . unwrap ( ) . split ( ',' ) { v . last_mut ( ) . unwrap ( ) . push ( value . parse ( ) . unwrap ( ) ) ; } } v }
Read a file into a vector
Read a file into a vector
filename
&str