Closure (computer programming): Difference between revisions

Content deleted Content added
Anonymous functions: Added comment
Tags: Reverted Mobile edit Mobile web edit
m Reverted edits by 85.129.40.72 (talk) (HG) (3.4.10)
Line 23:
def g(y):
return x + y
return g # Return a closure. This requires review: is g a closure or is f a closure? The rest of the article suggests f assigning x with 1 is a closure
 
def h(x):