Determine if a string is collapsible: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 3,750: Line 3,750:
Collapsed : <<< - Hary S Truman >>> Lenght : 17</pre>
Collapsed : <<< - Hary S Truman >>> Lenght : 17</pre>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
{{trans|Go}}
{{trans|Go}}
<syntaxhighlight lang="vlang">// Returns collapsed string, original and new lengths in
<syntaxhighlight lang="v (vlang)">// Returns collapsed string, original and new lengths in
// unicode code points (not normalized).
// unicode code points (not normalized).
fn collapse(s string) (string, int, int) {
fn collapse(s string) (string, int, int) {