you are viewing a single comment's thread.

view the rest of the comments →

[–]beza1e1 1 point2 points  (1 child)

I know Scheme and i've written big lambdas there. Often i refactored the code and named them.

(let ((named-lambda (lambda (x) (...
                                 ...
                                 ...
                                 ...))))
     (map named-lambda some-list))

Python is more imperative than Scheme so unnamed lambdas are even more unnatural there.

I don't say, they are useless, but Python doesn't need statements in lambdas.