Class FlattenFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.FlattenFunction
- All Implemented Interfaces:
FunctionInterface<Iterator<Object>>
,BiFunction<Iterator<?>,
EvaluationContext, Iterator<Object>>
Flatten an iterator of iterators a single layer.
That is, if you have an iterator-of-iterator-of-iterators, you will get back an iterator-of-iterators.
If you have an iterator-of-iterator-of-ints, you will get back an iterator of ints.
Another way to view this is that it takes away the top-level iterator.
-
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
-
FlattenFunction
public FlattenFunction()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, Iterator<Object>>
-