Remove vowels from a string: Difference between revisions

m
 
(6 intermediate revisions by 5 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 757 ⟶ 760:
After: Th qck brwn fx jmps vr th lzy dg
</pre>
 
=={{header|EasyLang}}==
<syntaxhighlight>
func$ rmv s$ .
for c$ in strchars s$
if strpos "AEIOUaeiou" c$ <> 0
c$ = ""
.
r$ &= c$
.
return r$
.
print rmv "The Quick Brown Fox Jumped Over the Lazy Dog's Back"
</syntaxhighlight>
 
=={{header|F_Sharp|F#}}==
Line 898 ⟶ 915:
 
{{FormulaeEntry|page=https://formulae.org/?script=examples/Remove_vowels_from_a_string}}
 
'''Solution'''
 
[[File:Fōrmulæ - Remove vowels from a string 01.png]]
 
[[File:Fōrmulæ - Remove vowels from a string 02.png]]
 
=={{header|FutureBasic}}==
Line 968 ⟶ 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 980 ⟶ 999:
diffrnt, nd to id prson with gronding
in on pproch to problm in lrning nothr.</pre>
 
=={{header|J}}==
<syntaxhighlight lang="j">devowel =: -. & 'aeiouAEIOU'</syntaxhighlight>
 
=={{header|Java}}==
Line 2,158 ⟶ 2,180:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">var removeVowels = Fn.new { |s| s.where { |c| !"aeiouAEIOU".contains(c) }.join() }
 
var s = "Wren Programming Language"
2,033

edits