Determine if a string is collapsible: Difference between revisions

→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
m (syntax highlighting fixup automation)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 3,750:
Collapsed : <<< - Hary S Truman >>> Lenght : 17</pre>
 
=={{header|V (Vlang)}}==
{{trans|Go}}
<syntaxhighlight lang="v (vlang)">// Returns collapsed string, original and new lengths in
// unicode code points (not normalized).
fn collapse(s string) (string, int, int) {
451

edits