Yet another unique() function...

MonkeeSage MonkeeSage at gmail.com
Thu Mar 1 14:02:09 EST 2007


On Feb 28, 3:46 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> I didn't think so but I can't conveniently test it for now.  Maybe
> tonight.

After playing with it a bit (only have 2.5 on this box), it looks like
you do need to subscript the next() call. For example, the return from
"unique( [[1], [2]] )" is "[(0, [1]), (1, [2])]". I'm not overly
familiar with the functional paradigm or itertools though, so I might
have missed something.

Regards,
Jordan




More information about the Python-list mailing list