Skip to content
Prev 240478 / 398500 Next

count occurrence and distance of characters in string

Hey,

thanks for the answer, actually I already typed an example
but deleted it since I thought it's superfluous.
regards

---------
string <- "kjokllokkoadddo"

# f1(string, "o") should return that "o" was found 4 times
# f2(string, "o") should return that the distances between the "o"'s
found is 3 , 2, 4
---------
On 11/05/2010 12:28 AM, Charles C. Berry wrote: