subexpressions

Steve Howell showell30 at yahoo.com
Fri Jun 1 07:03:15 EDT 2007


--- "A.T.Hofkamp" <hat at se-126.se.wtb.tue.nl> wrote:
> 
> lambda x: (lambda y: sin(y) + cos(y))(x*x)
> 

Elegant.

I find the use of y confusing there (thinking about
the unit circle), so I'd amend it to this:

lambda x: (lambda x2: sin(x2) + cos(x2))(x*x)

But I like the overall idea.





 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 



More information about the Python-list mailing list