withIndex

Returns a flow that wraps each element into IndexedValue, containing value and its index (starting from zero).