Replacement for lambda - 'def' as an expression?
Torsten Bronger
bronger at physik.rwth-aachen.de
Tue Sep 6 06:19:21 EDT 2005
Hallöchen!
"talin at acm dot org" <viridia at gmail.com> writes:
> [...]
>
> Anyway, here's an example, then, of how 'def' could be used:
>
> add = def( a, b ):
> return a + b
I'm really not an expert in functional programming, so I wonder
what's the difference between "add = def" (assumed that it worked)
and "def add"?
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus ICQ 264-296-646
More information about the Python-list
mailing list