Enhanced actions in functions and comprehensions