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

Method compose

packages/effect/src/Optic.ts:988–990  ·  view source on GitHub ↗
(that: any)

Source from the content-addressed store, hash-verified

986 return (s) => Result.getOrElse(Result.flatMap(this.getResult(s), (a) => this.replaceResult(f(a), s)), () => s)
987 }
988 compose(that: any): any {
989 return make(compose(this.node, that.node))
990 }
991 key(key: PropertyKey): any {
992 return make(compose(this.node, [new PathNode([key])]))
993 }

Callers 2

pickMethod · 0.95
omitMethod · 0.95

Calls 2

makeFunction · 0.70
composeFunction · 0.70

Tested by

no test coverage detected