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

Function primitiveNode

packages/effect/src/Optic.ts:338–340  ·  view source on GitHub ↗
(kind: Kind, get: (s: any) => any, set: (a: any, s?: any) => any)

Source from the content-addressed store, hash-verified

336type Node = ReadonlyArray<Step>
337
338function primitiveNode(kind: Kind, get: (s: any) => any, set: (a: any, s?: any) => any): Node {
339 return [{ _tag: "PrimitiveNode", kind, get, set }]
340}
341
342const identityOperation: Operation = {
343 kind: "Iso",

Callers 8

makeIsoFunction · 0.85
makeLensFunction · 0.85
makePrismFunction · 0.85
makeOptionalFunction · 0.85
optionalKeyMethod · 0.85
tagMethod · 0.85
atMethod · 0.85
entriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected