com.github.basking2.sdsai.itrex.functions.ForFunction 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;
import com.github.basking2.sdsai.itrex.EvaluationContext;
import com.github.basking2.sdsai.itrex.Evaluator;
import com.github.basking2.sdsai.itrex.SExprRuntimeException;
import com.github.basking2.sdsai.itrex.iterators.EvaluatingIterator;
import java.util.Iterator;
import static com.github.basking2.sdsai.itrex.iterators.Iterators.toIterator;
/**
* Takes a variable name, iterator, and an expression that is unevaluated.
*
* This iterates over the values, setting the value specified by the name.
*
* Like {@code if} this should not be directly curried or composed.
*/
public class ForFunction implements FunctionInterface
© 2015 - 2024 Weber Informatics LLC | Privacy Policy