Remove vowels from a string: Difference between revisions

m
(→‎J: add)
 
(3 intermediate revisions by 3 users not shown)
Line 529:
{{out}}
<pre>TH QCK BRWN FX jmps vr th lzy dg.</pre>
 
=={{header|BQN}}==
<syntaxhighlight lang="bqn">Devowel ← ¬∘∊⟜"AaEeIiOoUu"⊸/</syntaxhighlight>
 
=={{header|C}}==
Line 759 ⟶ 762:
 
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
func$ rmv s$ .
for c$ in strchars s$
forif v$ in strcharsstrpos "AEIOUaeiou" c$ <> 0
if c$ = v$""
c$ = ""
.
.
r$ &= c$
Line 773 ⟶ 774:
print rmv "The Quick Brown Fox Jumped Over the Lazy Dog's Back"
</syntaxhighlight>
 
 
=={{header|F_Sharp|F#}}==
Line 991:
main :: IO ()
main = putStrLn $ exceptGlyphs "eau" txt</syntaxhighlight>
 
or, in terms of filter:
<syntaxhighlight lang="haskell">exceptGlyphs :: String -> String -> String
exceptGlyphs = filter . flip notElem</syntaxhighlight>
 
{{Out}}
Line 2,184 ⟶ 2,180:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">var removeVowels = Fn.new { |s| s.where { |c| !"aeiouAEIOU".contains(c) }.join() }
 
var s = "Wren Programming Language"
1,983

edits