Selectively replace multiple instances of a character within a string: Difference between revisions

→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
No edit summary
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 769:
caarabadrab -> cABraECdFDb</pre>
 
=={{header|V (Vlang)}}==
A similar approach to the C++ entry.
<syntaxhighlight lang="ruby">fn selectively_replace_chars(s string, char_map map[string]string) string {
451

edits