Character distance by yamaya

s=io.read'*a'i=1
for c in s:gfind'.'do n=s:find(c,i+1,1)i=i+1,n and print(c..": "..n-i)end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page