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

Method compose

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

Source from the content-addressed store, hash-verified

998 return (s) => Result.getOrElse(Result.flatMap(this.getResult(s), (a) => this.replaceResult(f(a), s)), () => s)
999 }
1000 compose(that: any): any {
1001 return make(compose(this.node, that.node))
1002 }
1003 key(key: PropertyKey): any {
1004 return make(compose(this.node, [new PathNode([key])]))
1005 }

Callers 2

pickMethod · 0.95
omitMethod · 0.95

Calls 2

makeFunction · 0.70
composeFunction · 0.70

Tested by

no test coverage detected