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

Function f

packages/effect/test/Array.test.ts:88–88  ·  view source on GitHub ↗
(b: number, a: number)

Source from the content-addressed store, hash-verified

86
87 it("scan", () => {
88 const f = (b: number, a: number) => b - a
89 deepStrictEqual(pipe([1, 2, 3], Arr.scan(10, f)), [10, 9, 7, 4])
90 deepStrictEqual(pipe([0], Arr.scan(10, f)), [10, 10])
91 deepStrictEqual(pipe([], Arr.scan(10, f)), [10])

Callers 3

assertSpanFunction · 0.70
assertSplitWhereFunction · 0.70
Array.test.tsFile · 0.70

Calls 2

succeedMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected