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

Content added Content deleted
No edit summary
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 769: Line 769:
caarabadrab -> cABraECdFDb</pre>
caarabadrab -> cABraECdFDb</pre>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
A similar approach to the C++ entry.
A similar approach to the C++ entry.
<syntaxhighlight lang="ruby">fn selectively_replace_chars(s string, char_map map[string]string) string {
<syntaxhighlight lang="ruby">fn selectively_replace_chars(s string, char_map map[string]string) string {