in reply to Re^3: Using 'keys' on a listin thread Using 'keys' on a list
Yes, that's the point of this syntax. It wouldn't help for the case of the OP, as the call to f() will still generate the whole list.