Re: Yet another unique() function...
- From: "MonkeeSage" <MonkeeSage@xxxxxxxxx>
- Date: 28 Feb 2007 13:43:12 -0800
Paul,
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))
^^^
Regards,
Jordan
.
- Follow-Ups:
- Re: Yet another unique() function...
- From: Paul Rubin
- Re: Yet another unique() function...
- 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
- Yet another unique() function...
- Prev by Date: RE: Python Source Code Beautifier
- Next by Date: Re: Yet another unique() function...
- Previous by thread: Re: Yet another unique() function...
- Next by thread: Re: Yet another unique() function...
- Index(es):