Package hydra.lib.strings
Class Cat2
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.strings.Cat2
Concatenates two strings.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Constructor Details
-
Cat2
public Cat2()
-
-
Method Details
-
name
Returns the name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the name "hydra.lib.strings.cat2"
-
type
Returns the type scheme of this function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme for a function that concatenates two strings
-
implementation
Provides the implementation of this primitive function.- Specified by:
implementationin classPrimitiveFunction- Returns:
- a function that transforms terms to a flow of graph and term
-
apply
Concatenates two strings.- Parameters:
left- the first stringright- the second string- Returns:
- the concatenation of left and right
-