MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / map_

Function map_

packages/@contentlayer/utils/src/effect/These.ts:59–66  ·  view source on GitHub ↗
(self: These<E, A0>, f: (a: A0) => A)

Source from the content-addressed store, hash-verified

57}
58
59export function map_<E, A0, A>(self: These<E, A0>, f: (a: A0) => A) {
60 return foldM_(
61 self,
62 (a) => succeed(f(a)),
63 (a, e) => warn(f(a), e),
64 fail,
65 )
66}
67
68export function map<A0, A>(f: (a: A0) => A) {
69 return <E>(self: These<E, A0>) => map_(self, f)

Callers 1

mapFunction · 0.85

Calls 3

foldM_Function · 0.85
succeedFunction · 0.85
warnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…