pub fn parseline<T>(input: &str, delim: char) -> Vec<T> 
where T: FromStr, <T as FromStr>::Err: Debug { 
    input.split(delim)
        .filter(|token| !token.is_empty())
        .map(|elem| elem.parse().unwrap())
        .collect::<Vec<_>>()
}
/*
 * Parse a line separated by a delimiter into a vector
 * Empty tokens are filtered out
 */
Parse a line separated by a delimiter into a vector
Empty tokens are filtered out
Parse a line separated by a delimiter into a vector Empty tokens are filtered out
pub fn parseline<T>(input: &str, delim: char) -> Vec<T> 
where T: FromStr, <T as FromStr>::Err: Debug { 
    input.split(delim)
        .filter(|token| !token.is_empty())
        .map(|elem| elem.parse().unwrap())
        .collect::<Vec<_>>()
}
pub fn parseline < T > ( input : & str , delim : char ) -> Vec < T > where T : FromStr , < T as FromStr > :: Err : Debug { input . split ( delim ) . filter ( | token | ! token . is_empty ( ) ) . map ( | elem | elem . parse ( ) . unwrap ( ) ) . collect :: < Vec < _ > > ( ) }
Parse a line separated by a delimiter into a vector
 Empty tokens are filtered out
Parse a line separated by a delimiter into a vector Empty tokens are filtered out
input
&str
delim
char
input
&str
delim
char