Re: Do I need a nested lambda to do this?

2005-04-26 Thread raoul
very nice bill. thanks all. -- http://mail.python.org/mailman/listinfo/python-list

Re: Do I need a nested lambda to do this?

2005-04-26 Thread Kent Johnson
raoul wrote: I can't figure this one out. Trying to be unnecessarily functional I suspect. I have the following lists. vals = [1.000,2.344,4.2342] tab = [((0,1),(0,3),(0,4)), ((2,2),(3,0),(3,9)), ((3,4),(6,3),(7,1))] I'm trying to create a one liner using map/reduce/lambda/zip(* etc t

Re: Do I need a nested lambda to do this?

2005-04-25 Thread Bill Mill
On 4/25/05, R. C. James Harlow <[EMAIL PROTECTED]> wrote: > On Tuesday 26 April 2005 00:34, raoul wrote: > > I can't figure this one out. Trying to be unnecessarily functional I > > suspect. > > With list comprehensions: > > Python 2.3.4 (#1, Mar 26 2005, 20:54:10) > [GCC 3.3.4 20040623 (Gentoo L

Re: Do I need a nested lambda to do this?

2005-04-25 Thread R. C. James Harlow
On Tuesday 26 April 2005 00:34, raoul wrote: > I can't figure this one out. Trying to be unnecessarily functional I > suspect. With list comprehensions: Python 2.3.4 (#1, Mar 26 2005, 20:54:10) [GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2 Type "help", "copyright"

Do I need a nested lambda to do this?

2005-04-25 Thread raoul
I can't figure this one out. Trying to be unnecessarily functional I suspect. I have the following lists. vals = [1.000,2.344,4.2342] tab = [((0,1),(0,3),(0,4)), ((2,2),(3,0),(3,9)), ((3,4),(6,3),(7,1))] I'm trying to create a one liner using map/reduce/lambda/zip(* etc to do repla