com.github.basking2.sdsai.itrex.functions.ForFunction Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy