Brought f() inside f-iter() as a local function