Class FlattenFunction

java.lang.Object
com.github.basking2.sdsai.itrex.functions.FlattenFunction
All Implemented Interfaces:
FunctionInterface<Iterator<Object>>, BiFunction<Iterator<?>,EvaluationContext,Iterator<Object>>

public class FlattenFunction extends Object implements FunctionInterface<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.