Giving closures access to enclosing environment variables