|
|
|
|
|
by portLAN
6907 days ago
|
|
> In my very biased and unlearned view the simplest readable versions are Javascript and Lua. The Python version listed there doesn't actually meet the requirement (it doesn't return a function, it returns a class instance, and it keeps modifying n every time it's called). Corrected version: def foo(n): return lambda (i): n+i
Which is essentially identical to the Common Lisp version.
|
|