( self: Option<A>, collection: Iterable<Option<A>> )
| 1670 | * import { Option } from "effect" |
| 1671 | * |
| 1672 | * Option.zipWith( |
| 1673 | * Option.some("John"), |
| 1674 | * Option.some(25), |
| 1675 | * (name, age) => ({ name: name.toUpperCase(), age }) |
| 1676 | * ) // => Option.some({ name: "JOHN", age: 25 }) |
| 1677 | * ``` |
| 1678 | * |
| 1679 | * @see {@link product} to combine into a tuple instead |
| 1680 | * @see {@link lift2} to lift a binary function |
| 1681 | * |
| 1682 | * @category zipping |
| 1683 | * @since 2.0.0 |
| 1684 | */ |
| 1685 | export const zipWith: { |
| 1686 | <B, A, C>(that: Option<B>, f: (a: A, b: B) => C): (self: Option<A>) => Option<C> |
| 1687 | <A, B, C>(self: Option<A>, that: Option<B>, f: (a: A, b: B) => C): Option<C> |
| 1688 | } = dual( |
| 1689 | 3, |
| 1690 | <A, B, C>(self: Option<A>, that: Option<B>, f: (a: A, b: B) => C): Option<C> => |
no test coverage detected
searching dependent graphs…