coconut
coconut copied to clipboard
Fix scoping for statement lambdas
Statement lambdas should automatically get partially applied with the surrounding scope, even that introduced by a list comprehension or normal lambda. Easy way to do this is try to inject locals()
, hard way is to detect all the local assignments and explicitly partially apply them.