Package hydra.lib.sets
Class IsEmpty
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.sets.IsEmpty
Checks if a set is empty.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Constructor Details
-
IsEmpty
public IsEmpty()
-
-
Method Details
-
name
Returns the name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the name "hydra.lib.sets.isEmpty"
-
type
Returns the type scheme of this function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme for a function that checks if a set is empty
-
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
Checks if a set is empty.- Type Parameters:
X- the type of elements in the set- Parameters:
arg- the set to check- Returns:
- true if the set is empty, false otherwise
-