MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeMap

Function makeMap

packages/cli/src/internal/args.ts:690–699  ·  view source on GitHub ↗
(
  self: Args.Args<A>,
  f: (value: A) => Effect.Effect<B, HelpDoc.HelpDoc, FileSystem.FileSystem | Path.Path | Terminal.Terminal>
)

Source from the content-addressed store, hash-verified

688}
689
690const makeMap = <A, B>(
691 self: Args.Args<A>,
692 f: (value: A) => Effect.Effect<B, HelpDoc.HelpDoc, FileSystem.FileSystem | Path.Path | Terminal.Terminal>
693): Args.Args<B> => {
694 const op = Object.create(proto)
695 op._tag = "Map"
696 op.args = self
697 op.f = f
698 return op
699}
700
701const makeBoth = <A, B>(left: Args.Args<A>, right: Args.Args<B>): Args.Args<[A, B]> => {
702 const op = Object.create(proto)

Callers 2

args.tsFile · 0.70
withDescriptionInternalFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…