Class ListFlattenFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.ListFlattenFunction
- All Implemented Interfaces:
FunctionInterface<List<Object>>
,HelpfulFunction
,BiFunction<Iterator<?>,
EvaluationContext, List<Object>>
public class ListFlattenFunction
extends Object
implements HelpfulFunction, FunctionInterface<List<Object>>
Flatten arguments and iterators into a list.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Iterator<?> iterator, 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
-
ListFlattenFunction
public ListFlattenFunction()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, List<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.
-