Returns a generator that yields every nth element from the input iterable. The first element is always included.
The type of elements in the iterable
The step size (every nth element)
Elements at positions where the index modulo equals zero
G.pipe( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], G.step(3), G.array) // [1, 4, 7, 10] Copy
G.pipe( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], G.step(3), G.array) // [1, 4, 7, 10]
Returns a generator that yields every nth element from the input iterable. The first element is always included.