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

Function map

packages/typeclass/src/Bicovariant.ts:62–68  ·  view source on GitHub ↗
(
  F: Bicovariant<F>
)

Source from the content-addressed store, hash-verified

60 * @since 0.24.0
61 */
62export const map = <F extends TypeLambda>(
63 F: Bicovariant<F>
64): Covariant<F>["map"] =>
65 dual(
66 2,
67 <R, O, E, A, B>(self: Kind<F, R, O, E, A>, f: (a: A) => B): Kind<F, R, O, E, B> => F.bimap(self, identity, f)
68 )

Callers 6

imapFunction · 0.70
Semigroup.tsFile · 0.70
productManyFunction · 0.70
Covariant.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected