[FRPythoneers] Joining a lists of lists?

Marcio Luis Teixeira marciot at holly.colostate.edu
Wed Aug 7 15:06:36 MDT 2002


On Wednesday 07 August 2002 09:00 am, Bob Gailer wrote:
> from operator import add
> a=[[1,2],[3,4]]
> reduce(add,a)
> [1, 2, 3, 4]
>
> Bob Gailer
> mailto:ramrom at earthling.net
> 303 442 2625

Cool! :) That one can't be beat in elegance!

Thanks,

Marcio Luis Teixeira



More information about the FRPythoneers mailing list