Jump to content

Count occurrences of a substring: Difference between revisions

→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
No edit summary
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 3,283:
0</pre>
 
=={{header|V (Vlang)}}==
<syntaxhighlight lang="v (vlang)">fn main(){
println('the three truths'.count('th'))
println('ababababab'.count('abab'))
451

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.