Warning: session_start(): open(/var/lib/php/sessions/sess_7shkma4elsfcgq92p1mc2bhskl, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass AI_ExecuteSimpleForWhere implements Steppable {
ForWhere fw;
DeepZipTools tools;
O var;
S functionName;
Iterator elements;
*() {}
*(DeepZipTools *tools, IVF1 *addLogicRule,
IF1 *elementsForFunction, ForWhere *fw) {}
// handle output
swappable void addLogicRule(BasicLogicRule rule) {}
swappable Iterable elementsForFunction(S functionName) { null; }
public bool step() {
if (elements == null) {
Pair p = forWhereParseSimpleFunctionCall(fw, tools);
if (p == null) false;
functionName = (S) p.b;
var = p.a;
elements = iterator(elementsForFunction(functionName));
}
if (!elements.hasNext()) false;
addLogicRule((BasicLogicRule) tools.replaceVars(fw.body, litmap(var, elements.next())));
true;
}
}