Returns a flow containing the results of applying the given f function to each value and its index in the original flow.