MCPcopy Create free account
hub / github.com/effect-app/libs / cloneShallow

Function cloneShallow

repos/effect/packages/effect/src/Optic.ts:1240–1250  ·  view source on GitHub ↗
(pojo: T)

Source from the content-addressed store, hash-verified

1238 if (Result.isFailure(result)) {
1239 return result
1240 }
1241 s = result.success
1242 } else {
1243 s = op.get(s)
1244 }
1245 }
1246 for (let i = len - 1; i >= 0; i--) {
1247 const op = nodes[i]
1248 if (hasSourceFreeSet(op.kind)) {
1249 a = op.set(a)
1250 } else if (op.kind === "Lens") {
1251 a = op.set(a, sources[i])
1252 } else {
1253 const result = op.set(a, sources[i])

Callers 3

optionalKeyMethod · 0.85
atMethod · 0.85
Optic.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…