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

Function g

packages/effect/test/Array.test.ts:880–880  ·  view source on GitHub ↗
(n: number, i: number)

Source from the content-addressed store, hash-verified

878 deepStrictEqual(pipe([1, 2, 3], Arr.filterMap(f)), [1, 3])
879 deepStrictEqual(pipe([], Arr.filterMap(f)), [])
880 const g = (n: number, i: number) => ((i + n) % 2 === 0 ? Option.none() : Option.some(n))
881 deepStrictEqual(pipe([1, 2, 4], Arr.filterMap(g)), [1, 2])
882 deepStrictEqual(pipe([], Arr.filterMap(g)), [])
883 })

Callers 2

wrapGetDescriptionFunction · 0.50
wrapGoFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected