Class DictFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.DictFunction
- All Implemented Interfaces:
FunctionInterface<Map<Object,
,Object>> BiFunction<Iterator<?>,
EvaluationContext, Map<Object, Object>>
A function that materializes an iterator into a dictionary and returns it.
This is useful for passing arguments into java
FunctionInterface
s you write and bind as functions.
This is not termed, "Map", as in this language "map" is a function performed on sequences.
If an odd number of arguments is given, the last one is set to NULL.-
Constructor Details
-
DictFunction
public DictFunction()
-
-
Method Details
-
apply
public Map<Object,Object> apply(Iterator<? extends Object> objectIterator, EvaluationContext evaluationContext) - Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, Map<Object, Object>>
-