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

Function separate

packages/effect/src/Chunk.ts:1793–1797  ·  view source on GitHub ↗
(self: Chunk<Result<B, A>>)

Source from the content-addressed store, hash-verified

1791 * @since 2.0.0
1792 */
1793export const separate = <A, B>(self: Chunk<Result<B, A>>): [Chunk<A>, Chunk<B>] =>
1794 pipe(
1795 RA.separate(toReadonlyArray(self)),
1796 ([l, r]) => [fromArrayUnsafe(l), fromArrayUnsafe(r)]
1797 )
1798
1799/**
1800 * Retrieves the size of the chunk.

Callers

nothing calls this directly

Calls 2

pipeFunction · 0.90
fromArrayUnsafeFunction · 0.85

Tested by

no test coverage detected