Ad
Code
Diff
  • fn disemvowel(string: &str) -> String {
        string.replace(['A','E','I','O','U','a','e','i','o','u'], "")
    }
    • fn disemvowel(string: &str) -> String {
    • string.chars().filter(|&c| !"AEIOUaeiou".contains(c)).collect()
    • string.replace(['A','E','I','O','U','a','e','i','o','u'], "")
    • }