Class Cat2

    • Constructor Summary

      Constructors 
      Constructor Description
      Cat2()  
    • Constructor Detail

      • Cat2

        public Cat2()
    • Method Detail

      • name

        public Name name()
        Returns the name of this primitive function.
        Specified by:
        name in class PrimitiveFunction
        Returns:
        the name "hydra.lib.strings.cat2"
      • type

        public TypeScheme type()
        Returns the type scheme of this function.
        Specified by:
        type in class PrimitiveFunction
        Returns:
        the type scheme for a function that concatenates two strings
      • implementation

        protected java.util.function.Function<java.util.List<Term>,​java.util.function.Function<InferenceContext,​java.util.function.Function<Graph,​Either<Error_,​Term>>>> implementation()
        Provides the implementation of this primitive function.
        Specified by:
        implementation in class PrimitiveFunction
        Returns:
        a function that transforms terms to a flow of graph and term
      • apply

        public static java.lang.String apply​(java.lang.String left,
                                             java.lang.String right)
        Concatenates two strings.
        Parameters:
        left - the first string
        right - the second string
        Returns:
        the concatenation of left and right