Package hydra.lib.eithers
Class IsLeft
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.eithers.IsLeft
Check if an Either value is a Left.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Field Details
-
NAME
-
-
Constructor Details
-
IsLeft
public IsLeft()
-
-
Method Details
-
name
Description copied from class:PrimitiveFunctionThe unique name of the primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the name of this primitive function
-
type
Description copied from class:PrimitiveFunctionThe datatype of the primitive function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme of this primitive function
-
implementation
Description copied from class:PrimitiveFunctionA dynamic/interpreted implementation of the function.- Specified by:
implementationin classPrimitiveFunction- Returns:
- the function implementation
-
apply
Check if an Either value is a Left.- Type Parameters:
A- the left typeB- the right type- Parameters:
either- the Either value to check- Returns:
- true if the Either is a Left, false otherwise
-