Determine if a string is collapsible: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) 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) {
|