Strip a set of characters from a string: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add SETL) |
|||
Line 2,674: | Line 2,674: | ||
Sh ws soul strppr. Sh took my hrt! |
Sh ws soul strppr. Sh took my hrt! |
||
</pre> |
</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}}== |
=={{header|Sidef}}== |