Class P2.Optic

java.lang.Object
fj.P2.Optic
Enclosing class:
P2<A,B>

public static final class P2.Optic extends Object
Optic factory methods for a P2
  • Method Details

    • _1p

      public static <A,B,C> PLens<P2<A,B>,P2<C,B>,A,C> _1p()
      Polyomorphic lens targeted on _1.
    • _1

      public static <A,B> Lens<P2<A,B>,A> _1()
      Monomorphic lens targeted on _1.
    • _2p

      public static <A,B,C> PLens<P2<A,B>,P2<A,C>,B,C> _2p()
      Polyomorphic lens targeted on _2.
    • _2

      public static <A,B> Lens<P2<A,B>,B> _2()
      Monomorphic lens targeted on _1.