Class CallFlattenedFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.AbstractFunction1<FunctionInterface<Object>,Object>
com.github.basking2.sdsai.itrex.functions.functional.CallFlattenedFunction
- All Implemented Interfaces:
FunctionInterface<Object>
,BiFunction<Iterator<?>,
EvaluationContext, Object>
Call a function with the remaining arguments flattened.
So the given code fragment:
[callFlattened f [list a b] [list c d]]
will result in calling [f a b c d]
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
applyImpl
(FunctionInterface<Object> objectFunctionInterface, Iterator<?> rest, EvaluationContext context) Overriders of this class should implement this.Methods inherited from class com.github.basking2.sdsai.itrex.functions.AbstractFunction1
apply
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
-
CallFlattenedFunction
public CallFlattenedFunction()
-
-
Method Details
-
applyImpl
protected Object applyImpl(FunctionInterface<Object> objectFunctionInterface, Iterator<?> rest, EvaluationContext context) Description copied from class:AbstractFunction1
Overriders of this class should implement this.- Specified by:
applyImpl
in classAbstractFunction1<FunctionInterface<Object>,
Object> - Parameters:
objectFunctionInterface
- The desired parameter.rest
- Any unused arguments.context
- The evaluation context.- Returns:
- The produced object.
-