Class EitherPrism


  • public final class EitherPrism
    extends java.lang.Object
    • Constructor Detail

      • EitherPrism

        private EitherPrism()
    • Method Detail

      • _left

        public static <L,​R> Prism.Simple<Either<L,​R>,​L> _left()
        A Prism that focuses on the left value of an Either.
        Type Parameters:
        L - the left type
        R - the right type
        Returns:
        the Prism
      • _right

        public static <L,​R> Prism.Simple<Either<L,​R>,​R> _right()
        A Prism that focuses on the right value of an Either.
        Type Parameters:
        L - the left type
        R - the right type
        Returns:
        the Prism