Remove vowels from a string: Difference between revisions
Realize in F#
Thundergnat (talk | contribs) m (→{{header|Raku}}: Probably should capture œ ligatures too) |
(Realize in F#) |
||
Line 38:
</pre>
=={{header|F_Sharp|F#}}==
===The Function===
<lang fsharp>
let stripVowels n=let g=set['a';'e';'i';'o';'u';'A';'E';'I';'O';'U'] in n|>Seq.filter(fun n->not(g.Contains n))|>Array.ofSeq|>System.String
printfn "%s" (stripVowels "Nigel Galloway")
</lang>
{{out}}
<pre>
"Ngl Gllwy"
</pre>
=={{header|Go}}==
<lang go>package main
|