function expression with 2 arguments

Xah Lee xah at xahlee.org
Sat Feb 26 16:25:22 EST 2005


lambda x, y: x + y

that's what i was looking for.

... once i have a lambda expr, how to apply it to arguments?

e.g. in Mathematica
Function[#1+#2][a,b]

Python doc is quite confounded in it's way of organization centered
around implementation tied to hardware (as most imperative languages
are hardware-centric), as opposed to algorithm math concepts.

 Xah
 xah at xahlee.org
 http://xahlee.org/PageTwo_dir/more.html




More information about the Python-list mailing list