http://qs1969.pair.com?node_id=11134467


in reply to Re^2: Using 'keys' on a list
in thread Using 'keys' on a list

And this would have its own iterator?

Replies are listed 'Best First'.
Re^4: Using 'keys' on a list
by Corion (Patriarch) on Jun 30, 2021 at 05:55 UTC

    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.