Determine if a string is collapsible: Difference between revisions
Determine if a string is collapsible (view source)
Revision as of 13:14, 16 October 2022
, 1 year ago→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
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) {
|