3 ms·
... Yeah, that's gnarly. :D That is emulating `let` using lambdas, though, and not mutable assignment. Still useful if you really want to nest them, but still i
by darkf 10y ago
... Yeah, that's gnarly. :D
That is emulating `let` using lambdas, though, and not mutable assignment. Still useful if you really want to nest them, but still immutable.
- grondilu 10y agoI don't know, isn't it possible to do the equivalent of mutable assignment if I use the same variable name several times? For instance for the equivalent of x = 3; x = x + 1; print(x): (lambda x: (lambda x: print(x))(x+1))(3);