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

Function item

packages/effect/test/List.test.ts:58–58  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

56
57 it("findFirst", () => {
58 const item = (a: string, b: string) => ({ a, b })
59 const list = List.make(item("a1", "b1"), item("a2", "b2"), item("a3", "b2"))
60 assertSome(List.findFirst(list, ({ b }) => b === "b2"), item("a2", "b2"))
61 assertNone(List.findFirst(list, ({ b }) => b === "-"))

Callers 9

List.test.tsFile · 0.85
arrayFunction · 0.85
setArbitraryFunction · 0.85
readonlySetPrettyFunction · 0.85
chunkArbitraryFunction · 0.85
nonEmptyChunkArbitraryFunction · 0.85
dataArbitraryFunction · 0.85
dataPrettyFunction · 0.85
Schema.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected