fn mutate_word(word: &str) -> String {
    // Split word into Vec<char> of individual chars then push '-' at end
    let mut chars: Vec<char> = word.chars().collect();
    chars.push('-');
    // Check if first char is vowel, then perform char manipulation based on that
    match is_vowel(word) {
        true => chars.push('h'),
        false => {
            let char1 = chars.remove(0);
            chars.push(char1);
        }
    }

    // Combine chars into new_word as String, then push "ay " to end
    let mut new_word: String = chars.into_iter().collect();
    new_word.push_str("ay ");

    new_word
}
// mutate_word function takes in a word, tuend into a Vec<char> to manipulate,
// individual chars. Then checks if the first char is a vowel, if it is a vowl
// it pushes 'h' to the end of the chars vector, if not it removes the first char,
// pushes it to the end of the vec.
//
// One it has the first char figured out, it combines chars into a String
//Then pushes "ay " to the end of the word. Finally returns the mutated word
mutate_word function takes in a word, tuend into a Vec to manipulate,
individual chars. Then checks if the first char is a vowel, if it is a vowl
it pushes 'h' to the end of the chars vector, if not it removes the first char,
pushes it to the end of the vec.

One it has the first char figured out, it combines chars into a String
Then pushes "ay " to the end of the word. Finally returns the mutated word
mutate_word function takes in a word tuend into a Vec to manipulate individual chars . Then checks if the first char is a vowel if it is a vowl it pushes ' h ' to the end of the chars vector if not it removes the first char pushes it to the end of the vec . One it has the first char figured out it combines chars into a String Then pushes " ay " to the end of the word . Finally returns the mutated word
fn mutate_word(word: &str) -> String {
    // Split word into Vec<char> of individual chars then push '-' at end
    let mut chars: Vec<char> = word.chars().collect();
    chars.push('-');
    // Check if first char is vowel, then perform char manipulation based on that
    match is_vowel(word) {
        true => chars.push('h'),
        false => {
            let char1 = chars.remove(0);
            chars.push(char1);
        }
    }
    // Combine chars into new_word as String, then push "ay " to end
    let mut new_word: String = chars.into_iter().collect();
    new_word.push_str("ay ");
    new_word
}
fn mutate_word ( word : & str ) -> String { // Split word into Vec<char> of individual chars then push '-' at end let mut chars : Vec < char > = word . chars ( ) . collect ( ) ; chars . push ( '-' ) ; // Check if first char is vowel, then perform char manipulation based on that match is_vowel ( word ) { true => chars . push ( 'h' ) , false => { let char1 = chars . remove ( 0 ) ; chars . push ( char1 ) ; } } // Combine chars into new_word as String, then push "ay " to end let mut new_word : String = chars . into_iter ( ) . collect ( ) ; new_word . push_str ( " " ) ; new_word }
mutate_word function takes in a word, tuend into a Vec<char> to manipulate,
individual chars.
mutate_word function takes in a word tuend into a Vec<char > to manipulate individual chars .
word
&str