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

Function lift2

packages/effect/src/Option.ts:1994–1997  ·  view source on GitHub ↗
(f: (a: A, b: B) => C)

Source from the content-addressed store, hash-verified

1992 * @since 2.0.0
1993 */
1994export const lift2 = <A, B, C>(f: (a: A, b: B) => C): {
1995 (that: Option<B>): (self: Option<A>) => Option<C>
1996 (self: Option<A>, that: Option<B>): Option<C>
1997} => dual(2, (self: Option<A>, that: Option<B>): Option<C> => zipWith(self, that, f))
1998
1999/**
2000 * Lifts a `Predicate` or `Refinement` into the `Option` context: returns

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected