On 18 Mar, 22:22, sturlamolden <[EMAIL PROTECTED]> wrote: > def nonunique(lst): > slst = sorted(lst) > return list(set([s[0] for s in > filter(lambda t : not(t[0]-t[1]), zip(slst[:-1],slst[1:]))]))
Or perhaps better: def nonunique(lst): slst = sorted(lst) return list(set([s[0] for s in filter(lambda t : t[0] != t[1], zip(slst[:-1],slst[1:]))])) -- http://mail.python.org/mailman/listinfo/python-list