Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 08:24, 3 January 2022
, 2 years agoadd BQN
(Added solution for Action!) |
(add BQN) |
||
Line 747:
Sh ws soul strppr. Sh took my hrt!
</pre>
=={{header|BQN}}==
The key function here is set difference, which is <code>(¬∘∊/⊣)</code>.
<lang bqn> StripChars ← (¬∘∊/⊣)
¬∘∊/⊣
"She was a soul stripper. She took my heart!" StripChars "aei"
"Sh ws soul strppr. Sh took my hrt!"</lang>
=={{header|Bracmat}}==
|