Class FnFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.function.FnFunction
- All Implemented Interfaces:
FunctionInterface<FunctionInterface<?>>
,BiFunction<Iterator<?>,
EvaluationContext, FunctionInterface<?>>
A handy utility function that defines a function or retrieves a definition of one.
The first argument to this is always a function name.
The optional second argument is a function body that will be registered under the given name.
If no function body is given, the previously defined function is looked up or an exception is thrown.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Iterator<?> iterator, EvaluationContext evaluationContext) 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
-
FnFunction
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, FunctionInterface<?>>
-