MCPcopy Create free account
hub / github.com/Effect-TS/effect / zipWithIndex

Function zipWithIndex

packages/effect/src/Stream.ts:3615–3615  ·  view source on GitHub ↗
(self: Stream<A, E, R>)

Source from the content-addressed store, hash-verified

3613 * @since 2.0.0
3614 */
3615export const zipWithIndex = <A, E, R>(self: Stream<A, E, R>): Stream<[A, number], E, R> => map(self, (a, i) => [a, i])
3616
3617/**
3618 * Zips each element with the next element, pairing the final element with

Callers

nothing calls this directly

Calls 1

mapFunction · 0.85

Tested by

no test coverage detected