Count occurrences of a substring: Difference between revisions
Count occurrences of a substring (view source)
Revision as of 18:21, 21 September 2023
, 9 months ago→{{header|RPL}}: simple, idiomatic version
(→{{header|RPL}}: simple, idiomatic version) |
|||
Line 3,299:
=={{header|RPL}}==
{{works with|Halcyon Calc|4.2.7}}
≪
≪
'''
'''END'''
≫ ≫ '<span style="color:blue">CNTSUB</span>' STO
"the three truths" <span style="color:blue">CNTSUB</span>
"ababababab" <span style="color:blue">CNTSUB</span>
{{out}}
<pre>
2: 3
1: 2
</pre>
=={{header|Ruby}}==
|