Perhaps I do not understand if your point is about lambdas in Python
or lambdas in general. I thought a lambda in a "first class objects"
argument is not like a local function definition at all because of the
lexical scoping of variables. The lambda in a functional language is
more like syntactic sugar for a class definition that has only one
method and then creating an instance of it. The class definition
needs to hold all the unbound variables occuring in the lambda body
and the creation of the instance sets those values. A good lisp
compiler can do a lot of optimization of a lambda environment.
Lambdas are useful for much more than making function arguments for
map and reduce operators.
-- ========================================================= Mark Riggle | "Give me LAMBDA or firstname.lastname@example.org | give me death" SAS Institute Inc., | SAS Campus Drive, Cary, NC, 27513 | (919) 677-8000 |