Strip a set of characters from a string: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add ABC) |
|||
Line 1,465:
=={{header|F_Sharp|F#}}==
<syntaxhighlight lang="fsharp">
let stripChars text (chars:string) =
fun (s:string) c -> s.Replace(c.ToString(),"")
) text
{{out}}
<pre>
▲ printfn "%s" (stripChars "She was a soul stripper. She took my heart!" "aei")
▲ 0</syntaxhighlight>
</pre>
▲<pre>Sh ws soul strppr. Sh took my hrt!</pre>
=={{header|Factor}}==
|