Remove vowels from a string: Difference between revisions

Content added Content deleted
(→‎J: add)
m (→‎{{header|Haskell}}: Pruned three redundant lines)
Line 991: Line 991:
main :: IO ()
main :: IO ()
main = putStrLn $ exceptGlyphs "eau" txt</syntaxhighlight>
main = putStrLn $ exceptGlyphs "eau" txt</syntaxhighlight>

or, in terms of filter:
<syntaxhighlight lang="haskell">exceptGlyphs :: String -> String -> String
exceptGlyphs = filter . flip notElem</syntaxhighlight>


{{Out}}
{{Out}}