Re: Yet another unique() function...
- From: Paul Rubin <http://phr.cx@xxxxxxxxxxxxxx>
- Date: 28 Feb 2007 13:46:41 -0800
"MonkeeSage" <MonkeeSage@xxxxxxxxx> writes:
In your case optimized version, in the second try clause using
itertools, it should be like this, shouldn't it?
return t(g.next()[1] for k,g in groupby(s, lambda (i,v): v))
I didn't think so but I can't conveniently test it for now. Maybe
tonight.
.
- References:
- Yet another unique() function...
- From: MonkeeSage
- Re: Yet another unique() function...
- From: bearophileHUGS
- Re: Yet another unique() function...
- From: Paul Rubin
- Re: Yet another unique() function...
- From: MonkeeSage
- Re: Yet another unique() function...
- From: MonkeeSage
- Yet another unique() function...
- Prev by Date: Re: Yet another unique() function...
- Next by Date: Re: Question about raise and exceptions.
- Previous by thread: Re: Yet another unique() function...
- Next by thread: Installing java2python (Newbie)
- Index(es):