Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 12:38, 2 April 2024
, 2 months agoAdd SETL
Not a robot (talk | contribs) (Add SETL) |
|||
Line 2,674:
Sh ws soul strppr. Sh took my hrt!
</pre>
=={{header|SETL}}==
<syntaxhighlight lang="setl">program strip_chars;
print(strip("She was a soul stripper. She took my heart!", "aei"));
proc strip(s, chs);
return +/[c : c in s | not c in chs];
end proc;
end program;</syntaxhighlight>
{{out}}
<pre>Sh ws soul strppr. Sh took my hrt!</pre>
=={{header|Sidef}}==
|