* 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>)
| 488 | * @see {@link id} — start a composition chain |
| 489 | */ |
| 490 | compose<B>(this: Iso<S, A>, that: Iso<A, B>): Iso<S, B> |
| 491 | compose<B>(this: Lens<S, A>, that: Lens<A, B>): Lens<S, B> |
| 492 | compose<B>(this: Prism<S, A>, that: Prism<A, B>): Prism<S, B> |
| 493 | compose<B>(this: Optional<S, A>, that: Optional<A, B>): Optional<S, B> |
no outgoing calls
no test coverage detected