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

Method forEach

repos/effect/packages/effect/src/Optic.ts:908–908  ·  view source on GitHub ↗

* Focuses **all elements** of an array-like focus and optionally narrows * to a subset using an element-level optic. * Available only on Traversal (i.e. when `A` is * `ReadonlyArray `). Returns a new Traversal focused on the * selected elements. * * **Details** *

(this: Traversal<S, A>, f: (iso: Iso<A, A>) => Optional<A, B>)

Source from the content-addressed store, hash-verified

906 * : Result.fail(issue)
907 * )
908 * }
909 *
910 * atKey("x").getResult({ x: 1 }) // => Result.succeed(1)
911 * ```

Callers 15

sql-store.test.tsFile · 0.65
addFunction · 0.65
addAllFunction · 0.65
rateLimit.tsFile · 0.65
naiveRateLimitFunction · 0.65
batchDocsFunction · 0.65
ClusterCosmos.tsFile · 0.65
bulkSetInternalFunction · 0.65
selectPerRowFunction · 0.65
batchSetFunction · 0.65

Implementers 1

OptionalImplrepos/effect/packages/effect/src/Optic

Calls

no outgoing calls

Tested by 7

expectPlainDeepFunction · 0.52
testFieldInfoFunction · 0.52
testUnionFieldInfoFunction · 0.52
testNestedFieldInfoFunction · 0.52
makeGatedFunction · 0.52
yieldNowNFunction · 0.52