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

Function primitiveNode

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

Source from the content-addressed store, hash-verified

327type Node = ReadonlyArray<Step>
328
329function primitiveNode(kind: Kind, get: (s: any) => any, set: (a: any, s?: any) => any): Node {
330 return [{ _tag: "PrimitiveNode", kind, get, set }]
331}
332
333const identityOperation: Operation = {
334 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