Lenses allow you to look inside a structure to access its value and then subsequently update that value. But because we don't want to do mutation, the updaters create new versions of the underlying structure.
- Lens
- tuple <A, B, C, D> (Lens<A, C> First, Lens<B, D> Second)
- tuple <A, B, C, D, E, F> (Lens<A, D> First, Lens<B, E> Second, Lens<C, F> Third)
- cond <A, B> (Func<A, bool> pred, Lens<A, B> Then, Lens<A, B> Else)
- fst <A, B> ()
- fst <A, B, C> ()
- fst <A, B, C, D> ()
- snd <A, B> ()
- snd <A, B, C> ()
- snd <A, B, C, D> ()
- thrd <A, B, C> ()
- thrd <A, B, C, D> ()
- identity <A> ()
- enumMap <A, B> (Lens<A, B> la)
- ToPrism <A, B> (this Lens<A, B> la)
- ToPrism <A, B> (this Lens<A, Option<B>> la)
- Lens <A, B>
- Get
- SetF
- Set (B value, A cont)
- New (Func<A, B> Get, Func<B, Func<A, A>> Set)
- Update (Func<B, B> f)
- Update (Func<B, B> f, A value)
- Prelude
- lens <A, B, C> (Lens<A, B> la, Lens<B, C> lb)
- lens <A, B, C, D> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc)
- lens <A, B, C, D, E> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld)
- lens <A, B, C, D, E, F> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le)
- lens <A, B, C, D, E, F, G> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf)
- lens <A, B, C, D, E, F, G, H> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf, Lens<G, H> lg)
- lens <A, B, C, D, E, F, G, H, I> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf, Lens<G, H> lg, Lens<H, I> lh)
- lens <A, B, C, D, E, F, G, H, I, J> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf, Lens<G, H> lg, Lens<H, I> lh, Lens<I, J> li)
- lens <A, B, C, D, E, F, G, H, I, J, K> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf, Lens<G, H> lg, Lens<H, I> lh, Lens<I, J> li, Lens<J, K> lj)
method Lens<(A, B), (C, D)> tuple <A, B, C, D> (Lens<A, C> First, Lens<B, D> Second) Source #
Pair two lenses
method Lens<(A, B, C), (D, E, F)> tuple <A, B, C, D, E, F> (Lens<A, D> First, Lens<B, E> Second, Lens<C, F> Third) Source #
Triple three lenses
method Lens<A, B> cond <A, B> (Func<A, bool> pred, Lens<A, B> Then, Lens<A, B> Else) Source #
Primitive lens type for creating well-behaved bidirectional transformations
method Lens<A, C> lens <A, B, C> (Lens<A, B> la, Lens<B, C> lb) Source #
Sequentially composes two lenses
method Lens<A, D> lens <A, B, C, D> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc) Source #
Sequentially composes three lenses
method Lens<A, E> lens <A, B, C, D, E> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld) Source #
Sequentially composes four lenses
method Lens<A, F> lens <A, B, C, D, E, F> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le) Source #
Sequentially composes five lenses
method Lens<A, G> lens <A, B, C, D, E, F, G> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf) Source #
Sequentially composes six lenses
method Lens<A, H> lens <A, B, C, D, E, F, G, H> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf, Lens<G, H> lg) Source #
Sequentially composes seven lenses
method Lens<A, I> lens <A, B, C, D, E, F, G, H, I> (Lens<A, B> la, Lens<B, C> lb, Lens<C, D> lc, Lens<D, E> ld, Lens<E, F> le, Lens<F, G> lf, Lens<G, H> lg, Lens<H, I> lh) Source #
Sequentially composes eight lenses