[Tutor] combining tuples in a list
Sean 'Shaleh' Perry
shalehperry@attbi.com
Fri, 05 Apr 2002 09:16:18 -0800 (PST)
>
> Currently, I am carrying out this procedure in a seemingly very inefficient
> way by going through the list of tuples multiple times for each tuple I am
> building up. I'm sure there must be a better way.
>
> Any suggestions are appreciated.
>
The only thought coming to me (admittedly as I munch breakfast) is that if you
sort the list based on the last char of each tuple you can reduce the number of
elements you have to check.