Class IsLeft

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Name NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      IsLeft()  
    • Field Detail

      • NAME

        public static final Name NAME
    • Constructor Detail

      • IsLeft

        public IsLeft()
    • Method Detail

      • name

        public Name name()
        Description copied from class: PrimitiveFunction
        The unique name of the primitive function.
        Specified by:
        name in class PrimitiveFunction
        Returns:
        the name of this primitive function
      • implementation

        protected java.util.function.Function<java.util.List<Term>,​java.util.function.Function<Context,​java.util.function.Function<Graph,​Either<InContext<Error_>,​Term>>>> implementation()
        Description copied from class: PrimitiveFunction
        A dynamic/interpreted implementation of the function. Subclasses implement this with Either-based logic.
        Specified by:
        implementation in class PrimitiveFunction
        Returns:
        the function implementation
      • apply

        public static <A,​B> java.lang.Boolean apply​(Either<A,​B> either)
        Check if an Either value is a Left.
        Type Parameters:
        A - the left type
        B - the right type
        Parameters:
        either - the Either value to check
        Returns:
        true if the Either is a Left, false otherwise