duplicates of parts of a line in list

hh hh at livecode.org
Sun Aug 3 08:11:49 EDT 2014


Sorru "ell" and "one" are hard to distinguish. SO

function myCounter myList
  repeat for each line i in myList
    if i is empty then next repeat
    add 1 to f[char 1 to 2 of i &comma& char 7 to 8 of i]
  end repeat
  repeat for each line i in myList
    if i is empty then next repeat
    put cr & i & "_" & f[char 1 to 2 of i &comma& char 7 to 8 of i] after s
  end repeat
  delete char 1 of s -- is return
  return s
end myCounter





More information about the use-livecode mailing list