Creates a generator that yields each value from the input iterable along with its index.
The type of elements in the input iterable
The input iterable of values
G.pipe( [10, 20, 30], G.withIndex, G.array) // [[10, 0], [20, 1], [30, 2]] Copy
G.pipe( [10, 20, 30], G.withIndex, G.array) // [[10, 0], [20, 1], [30, 2]]
Creates a generator that yields each value from the input iterable along with its index.