Content deleted Content added
WP:COMP Tagging ! (False Postive ?? ) :(Plugin++) Added {{WikiProject Computing}}. |
TobiasHerp (talk | contribs) →Python has first-class functions: new section |
||
Line 44:
: I must concur. [[User:Jsnx|jsnx]] ([[User talk:Jsnx|talk]]) 02:11, 7 December 2007 (UTC)
== Python has first-class functions ==
Python ''has'' first-class functions, hasn't it? Functions share the same namespace as variables; a function can be assigned to a variable (while of course it is more common to assign the result of a function call). The point about Python's <tt>lambda</tt> functions is them to be ''anonymous''; they are defined in-place where they are needed, e.g. in a call to the <tt>sort</tt> function, and are limited to contain just an expression. Or did I misunderstand something? --[[User:TobiasHerp|Tobias]] ([[User talk:TobiasHerp|talk]]) 09:34, 19 August 2008 (UTC)
|