Selectively replace multiple instances of a character within a string: Difference between revisions
Content added Content deleted
m (putting Lambdatalk at the right place, after Julia and before Perl) |
m (→{{header|Lambdatalk}}: small edit) |
||
Line 246: | Line 246: | ||
abracadabra |
abracadabra |
||
{A.new |
{A.new |
||
aA aB |
aA aB a3 aC aD 3a // save third "a" as "3" and restore it |
||
bE // first "b" |
bE // first "b" |
||
r1 rF 1r // save first "a" as "1" and restore it |
|||
_r _a // restore first "r" and third "a" |
|||
}} |
}} |
||
-> AErBcadCbFD |
-> AErBcadCbFD |