D
Dennis Lee Bieber
Too much destruction in this post man, and yeah I would not be able to
explain the code for my homework.
The whole plan in posting it... Something for independent study <G>
Too much destruction in this post man, and yeah I would not be able to
explain the code for my homework.
Lambdas are great when needed, but if don't *need* it, and you have more
than a few, debugging can be a nightmare... "Okay, so this is function
<lambda>... and that is function <lambda>... and over here we also have
function <lambda>... ARGH!"
[41, 52, 63]list(map(lambda x,y: x+y,[1,2,3],[40,50,60]))
Those are only practically the same if you ignore the practical worth of
a function knowing the name it was defined with. The latter does not
have that, hence I don't see it as practically the same as the former.
I know, but in the context of explaining what "lambda" means, it's
practically the same. Lambdas can't (afaik) have docstrings either,
etc, etc, but in terms of defining lambda, the two are more-or-less
equivalent.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.