!7 sclass LogicAgent { Collection concepts; // input new LinkedHashSet statements; // output void impl { for (AIConcept c : concepts) if ("Is an integer?") emit("qnaeuvrncafakobl " + c.globalID); // yes } void emit(S s) { if (statements.add(s)) print("> " + s); } void runLive(bool doIt) { concepts = aiConcepts(); statements.clear(); impl(); if (doIt) addTruth(statements); } } p { new LogicAgent().runLive(true); }