by nn3 · 8y ago · 0 comments
l = readline() print l while True: n = readline() if editdistance(n, l) > 30%: print n l = n
The simple tool doesn't appear to handle interleaving? Normally uniq handles that by sorting first, but this would need an edit distance aware sort first. I suppose that wouldn't be that hard to build either.
Perhaps it could be just handled with a short window in the tool.