Change actions in functions and comprehensions