iterate (generic map)