Class ForFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.ForFunction
- All Implemented Interfaces:
FunctionInterface<Object>
,BiFunction<Iterator<?>,
EvaluationContext, Object>
Takes a variable name, iterator, and an expression that is unevaluated.
This iterates over the values, setting the value specified by the name.
Like
if
this should not be directly curried or composed.-
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
-
ForFunction
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, Object>
-