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

Function collect

packages/effect/src/Sink.ts:1569–1573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1567 * @since 4.0.0
1568 */
1569export const collect = <In>(): Sink<Array<In>, In> =>
1570 reduceArray(Arr.empty<In>, (s, arr) => {
1571 s.push(...arr)
1572 return s
1573 })
1574
1575/**
1576 * Collects the longest input prefix whose elements satisfy the predicate or

Callers 2

Record.tsFile · 0.70
valuesFunction · 0.70

Calls 2

reduceArrayFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected