MCPcopy
hub / github.com/Effect-TS/effect / lift2

Function lift2

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

Source from the content-addressed store, hash-verified

1766 * @since 2.0.0
1767 */
1768export const lift2 = <A, B, C>(f: (a: A, b: B) => C): {
1769 (that: Option<B>): (self: Option<A>) => Option<C>
1770 (self: Option<A>, that: Option<B>): Option<C>
1771} => dual(2, (self: Option<A>, that: Option<B>): Option<C> => zipWith(self, that, f))
1772
1773/**
1774 * Lifts a `Predicate` or `Refinement` into the `Option` context, returning a

Callers

nothing calls this directly

Calls 1

zipWithFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…