This is a discussion on Re: subexpressions - Python ; --- "A.T.Hofkamp" <hat@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) + ...
--- "A.T.Hofkamp" <hat@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