Remove vowels from a string: Difference between revisions

add OCaml
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
(add OCaml)
Line 1,527:
<pre>The quick brown fox jumps over the lazy dog
Th qck brwn fx jmps vr th lzy dg</pre>
 
=={{header|OCaml}}==
<syntaxhighlight lang="ocaml">let remove_vowels s : string =
let not_vowel = Fun.negate (String.contains "AaEeIiOoUu") in
String.to_seq s |> Seq.filter not_vowel |> String.of_seq</syntaxhighlight>
 
=={{header|Pascal}}==
559

edits