"Paul McGuire" <ptmcg at austin.rr.com> writes: > Any reason not to use a set for the 'seen' variable? Yes, the sequence can contain non-hashable elements. See the test vectors for examples.