Strip a set of characters from a string: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2,791: | Line 2,791: | ||
<pre>- stripchars ("She was a soul stripper. She took my heart!", "aei") ; |
<pre>- stripchars ("She was a soul stripper. She took my heart!", "aei") ; |
||
val it = "Sh ws soul strppr. Sh took my hrt!" : string</pre> |
val it = "Sh ws soul strppr. Sh took my hrt!" : string</pre> |
||
=={{header|Stringle}}== |
|||
<syntaxhighlight lang="stringle">a "She was a soul stripper. She took my heart!" |
|||
b "aei" |
|||
#a |
|||
c c .a |
|||
b %.\c #c #:c |
|||
a :a |
|||
#a |
|||
$ c |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre>Sh ws soul strppr. Sh took my hrt!</pre> |
|||
=={{header|Swift}}== |
=={{header|Swift}}== |