then<Q> method

FocusedLens<S, Q> then<Q>(
  1. Lens<T, Q> lens
)

Chain two lenses together.

For example, FooLens.bar.of(foo).then(BarLens.name), is equivalent to foo.bar.name.

Implementation

FocusedLens<S, Q> then<Q>(Lens<T, Q> lens) => FocusedLens<S, Q>._(_subject, _lens.then(lens));