We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7437833 commit e6cbaabCopy full SHA for e6cbaab
unpythonic/let.py
@@ -128,8 +128,8 @@ def let(body, **bindings):
128
129
from unpythonic.misc import begin
130
counter = let(x=0,
131
- body=lambda e: lambda: begin(e.set("x", e.x + 1),
132
- e.x))
+ body=lambda e: lambda: begin(e.set("x", e.x + 1),
+ e.x))
133
counter() # --> 1
134
counter() # --> 2
135
counter() # --> 3
0 commit comments