MCPcopy Index your code
hub / github.com/Effect-TS/effect / f

Function f

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

Source from the content-addressed store, hash-verified

74
75 it("scan", () => {
76 const f = (b: number, a: number) => b - a
77 deepStrictEqual(pipe([1, 2, 3], Arr.scan(10, f)), [10, 9, 7, 4])
78 deepStrictEqual(pipe([0], Arr.scan(10, f)), [10, 10])
79 deepStrictEqual(pipe([], Arr.scan(10, f)), [10])

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected