Count occurrences of a substring: Difference between revisions
Content added Content deleted
m (→{{header|Nim}}) |
|||
Line 1,578:
<lang nim>import strutils
proc count(s, sub: string): int =
var i = 0
while true:
|
m (→{{header|Nim}}) |
|||
Line 1,578:
<lang nim>import strutils
proc count(s, sub: string): int =
var i = 0
while true:
|