Package hydra.lib.lists
Class Cons
- java.lang.Object
-
- hydra.tools.PrimitiveFunction
-
- hydra.lib.lists.Cons
-
public class Cons extends PrimitiveFunction
-
-
Constructor Summary
Constructors Constructor Description Cons()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <X> java.util.List<X>apply(X el, java.util.List<X> l)Apply the function to both arguments.protected java.util.function.Function<java.util.List<Term>,Flow<Graph,Term>>implementation()A dynamic/interpreted implementation of the functionNamename()The unique name of the primitive functionTypeSchemetype()The datatype of the primitive function-
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
-
-
-
Field Detail
-
NAME
public static final Name NAME
-
-
Method Detail
-
name
public Name name()
Description copied from class:PrimitiveFunctionThe unique name of the primitive function- Specified by:
namein classPrimitiveFunction
-
type
public TypeScheme type()
Description copied from class:PrimitiveFunctionThe datatype of the primitive function- Specified by:
typein classPrimitiveFunction
-
implementation
protected java.util.function.Function<java.util.List<Term>,Flow<Graph,Term>> implementation()
Description copied from class:PrimitiveFunctionA dynamic/interpreted implementation of the function- Specified by:
implementationin classPrimitiveFunction
-
apply
public static <X> java.util.List<X> apply(X el, java.util.List<X> l)Apply the function to both arguments.
-
-