Class CurryFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.functional.CurryFunction
- All Implemented Interfaces:
FunctionInterface<FunctionInterface<Object>>
,HelpfulFunction
,BiFunction<Iterator<?>,
EvaluationContext, FunctionInterface<Object>>
public class CurryFunction
extends Object
implements HelpfulFunction, FunctionInterface<FunctionInterface<Object>>
This function takes a list of function name and arguments and produces a function that can be applied to future objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Iterator<?> args, EvaluationContext evaluationContext) functionHelp
(String name, boolean verbose) Returns help text for how this function should be used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
CurryFunction
public CurryFunction()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, FunctionInterface<Object>>
-
functionHelp
Description copied from interface:HelpfulFunction
Returns help text for how this function should be used.- Specified by:
functionHelp
in interfaceHelpfulFunction
- Parameters:
name
- The name the function is called. Functions may have aliases.verbose
- Should this help be verbose or simplistic.- Returns:
- A string that describes how to use a function. This may be a Markdown formatted string.
-