Remove vowels from a string: Difference between revisions
m
→{{header|EasyLang}}
m (K) |
|||
(8 intermediate revisions by 6 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 897 ⟶ 914:
=={{header|Fōrmulæ}}==
{{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 972 ⟶ 991:
main :: IO ()
main = putStrLn $ exceptGlyphs "eau" txt</syntaxhighlight>
{{Out}}
Line 984 ⟶ 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 1,431 ⟶ 1,449:
=={{header|K}}==
{{works with|ngn/k}}
<syntaxhighlight lang=K>novowel: {x^"aeiouAEIOU"}
Line 1,436 ⟶ 1,455:
"Th Qck Brwn Fx Jmpd vr th Lzy Dg's Bck"
</syntaxhighlight>
=={{header|Kotlin}}==
<syntaxhighlight lang="scala">fun removeVowels(s: String): String {
Line 2,160 ⟶ 2,180:
=={{header|Wren}}==
<syntaxhighlight lang="
var s = "Wren Programming Language"
|