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

Method modifyAll

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

* Applies a function to **every** element focused by the traversal. * * **Details** * * Available only on Traversal. Returns a function `(s: S) => S`. * If the traversal cannot focus, the original `s` is returned unchanged. * * Unlike `.modify()`, which operates on the w

(this: Traversal<S, A>, f: (a: A) => A)

Source from the content-addressed store, hash-verified

871 * @see {@link getAll} — extract focused elements
872 */
873 modifyAll<S, A>(this: Traversal<S, A>, f: (a: A) => A): (s: S) => S
874}
875
876/**

Callers 1

Optic.test.tsFile · 0.65

Implementers 1

OptionalImplpackages/effect/src/Optic.ts

Calls

no outgoing calls

Tested by

no test coverage detected