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

Function separate

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

Source from the content-addressed store, hash-verified

1869 * @since 2.0.0
1870 */
1871export const separate = <A, B>(self: Chunk<Result<B, A>>): [Chunk<B>, Chunk<A>] =>
1872 pipe(
1873 RA.separate(toReadonlyArray(self)),
1874 ([l, r]) => [fromArrayUnsafe(l), fromArrayUnsafe(r)]
1875 )
1876
1877/**
1878 * 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