com.github.basking2.sdsai.itrex.functions.function.ArgsFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdsai-itrex Show documentation
Show all versions of sdsai-itrex Show documentation
An S-Expression inspiried library focused on iterators.
package com.github.basking2.sdsai.itrex.functions.function;
import com.github.basking2.sdsai.itrex.EvaluationContext;
import com.github.basking2.sdsai.itrex.functions.FunctionInterface;
import java.util.Iterator;
/**
* Fetch all arguments from the current context.
*/
public class ArgsFunction implements FunctionInterface> {
@Override
public Iterator> apply(final Iterator> iterator, final EvaluationContext evaluationContext) {
return evaluationContext.getArguments();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy