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

Function f

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

Source from the content-addressed store, hash-verified

95
96 it("scan", () => {
97 const f = (b: number, a: number) => b - a
98 deepStrictEqual(pipe([1, 2, 3], Arr.scan(10, f)), [10, 9, 7, 4])
99 deepStrictEqual(pipe([0], Arr.scan(10, f)), [10, 10])
100 deepStrictEqual(pipe([], Arr.scan(10, f)), [10])

Callers 3

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

Calls 2

failMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected