pub fn first(s: &String) -> (String, usize) {
        let line = s.clone();
        let mut num = 0;
        for i in 0..len(&line) {
            let char = slice(&line, i..i + 1);
            if char == " " || char == "\t" {
                num += 1;
            } else {
                return (char, num);
            }
        }
        (String::from(""), num)
    }
/*
    returns the first character in a string, as well as the index of that string
    */
returns the first character in a string, as well as the index of that string
returns the first character in a string as well as the index of that string
pub fn first(s: &String) -> (String, usize) {
        let line = s.clone();
        let mut num = 0;
        for i in 0..len(&line) {
            let char = slice(&line, i..i + 1);
            if char == " " || char == "\t" {
                num += 1;
            } else {
                return (char, num);
            }
        }
        (String::from(""), num)
    }
pub fn first ( s : & String ) -> ( String , usize ) { let line = s . clone ( ) ; let mut num = 0 ; for i in 0 .. len ( & line ) { let char = slice ( & line , i .. i + 1 ) ; if char == " " || char == " \t " { num += 1 ; } else { return ( char , num ) ; } } ( String :: from ( " " ) , num ) }
returns the first character in a string, as well as the index of that string
returns the first character in a string as well as the index of that string
s
&String
s
&String