MCPcopy
hub / github.com/Effect-TS/effect / separate

Function separate

packages/effect/src/Chunk.ts:1008–1012  ·  view source on GitHub ↗
(self: Chunk<Either<B, A>>)

Source from the content-addressed store, hash-verified

1006 * @since 2.0.0
1007 */
1008export const separate = <A, B>(self: Chunk<Either<B, A>>): [Chunk<A>, Chunk<B>] =>
1009 pipe(
1010 RA.separate(toReadonlyArray(self)),
1011 ([l, r]) => [unsafeFromArray(l), unsafeFromArray(r)]
1012 )
1013
1014/**
1015 * Retireves the size of the chunk

Callers

nothing calls this directly

Calls 3

toReadonlyArrayFunction · 0.85
unsafeFromArrayFunction · 0.85
pipeFunction · 0.70

Tested by

no test coverage detected