* Composes this optic with another. The result type is the weakest of * the two: Iso + Iso = Iso, Lens + Prism = Optional, etc. * * **Example** (Composing a lens with a prism) * * ```ts import.meta.vitest * import { Optic, Option, Result } from "effect" * * type State = { val
(this: Iso<S, A>, that: Iso<A, B>)
| 478 | * @see {@link id} — start a composition chain |
| 479 | */ |
| 480 | compose<B>(this: Iso<S, A>, that: Iso<A, B>): Iso<S, B> |
| 481 | compose<B>(this: Lens<S, A>, that: Lens<A, B>): Lens<S, B> |
| 482 | compose<B>(this: Prism<S, A>, that: Prism<A, B>): Prism<S, B> |
| 483 | compose<B>(this: Optional<S, A>, that: Optional<A, B>): Optional<S, B> |
no outgoing calls
no test coverage detected