Restructure operations on functions work like scopes.