[Tutor] Grouping based on attributes of elements in a List

Alan Gauld alan.gauld at btinternet.com
Wed Mar 30 00:30:45 CEST 2011


"Sander Sweers" <sander.sweers at gmail.com> wrote

> flexible, readable and elegant than using a lamda. How would you 
> sort
> on the first and last item with lambda?

Wouldn't you just return a tuple of the two elements?

Or am I missing something having jumped into the middle of the 
thread...

Alan G.




More information about the Tutor mailing list