Strip a set of characters from a string: Difference between revisions
Content added Content deleted
Line 263: | Line 263: | ||
rdvrks r nt trs. |
rdvrks r nt trs. |
||
-></pre> |
-></pre> |
||
=={{header|J}}== |
|||
'''Solution:'''<br> |
|||
The dyadic primitive <code>-.</code> ([http://www.jsoftware.com/help/dictionary/d121.htm Less]) is probably the simplest way to solve this task. |
|||
'''Example Usage:''' |
|||
<lang j> 'She was a soul stripper. She took my heart!' -. 'aei' |
|||
Sh ws soul strppr. Sh took my hrt!</lang> |
|||
=={{header|Java}}== |
=={{header|Java}}== |