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

Function f

packages/effect/test/Record.test.ts:221–221  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

219
220 it("partition", () => {
221 const f = (n: number) => (n > 2 ? Result.succeed(n + 1) : Result.fail(n - 1))
222 deepStrictEqual(Record.partition({}, f), [{}, {}])
223 deepStrictEqual(Record.partition({ a: 1, b: 3, [symA]: null }, f), [{ a: 0 }, { b: 4 }])
224 })

Callers

nothing calls this directly

Calls 2

succeedMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected