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

Function map

packages/@contentlayer/utils/src/effect/These.ts:68–70  ·  view source on GitHub ↗
(f: (a: A0) => A)

Source from the content-addressed store, hash-verified

66}
67
68export function map<A0, A>(f: (a: A0) => A) {
69 return <E>(self: These<E, A0>) => map_(self, f)
70}
71
72export function mapError_<E0, E, A>(self: These<E0, A>, f: (a: E0) => E): These<E, A> {
73 return foldM_(

Callers 2

promiseMapDictFunction · 0.85
promiseMapPoolFunction · 0.85

Calls 1

map_Function · 0.85

Tested by

no test coverage detected