Package hydra.lib.strings
Class Unlines
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.strings.Unlines
Joins a list of strings with newlines and appends a final newline.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Constructor Details
-
Unlines
public Unlines()
-
-
Method Details
-
name
Returns the name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the name "hydra.lib.strings.unlines"
-
type
Returns the type scheme of this function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme for a function that joins strings with newlines
-
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
Joins a list of strings with newlines and appends a final newline.- Parameters:
lines- the list of strings to join- Returns:
- the joined string with newlines
-