<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Wheres a lambda expression can be passed anonymously to any other function as an argument.</div><div><br></div><div><i>map(lambda x: x**2, array)</i></div><div><br></div><div>vs </div><div><br></div><div><i>def powers2(x)</i></div><div><i>   x**2</i></div><div><i>map(powers2, array)</i><br></div><div><br></div><div>Coming up with a name here is not needed, as the operation is expressive enough. </div></div>
</div></blockquote><br><div>Sure, but there is a well known convention for such non-names already: meta syntactical variables. In this case the name could be "foo" and all readers will interpret this as "no name". </div><div><br></div><div>I admit to have wanted lambdas that are just as powerful as normal functions, but often when I want it the code is nicer when a normal function is used. </div><div><br></div><div>/ Anders</div></body></html>