!7 cmodule PhilosophyBot2 extends DynPrintLog { transient new L unmappedLines; transient new L unmappedQuestions; transient S program = [[ funnyAlgorithm funnyAlgorithm => proc { while (there are unmapped questions): find (an unmapped question) x find (an unmapped line) y map x to y } ]]; transient new PhilosophyBot1 bot; start-thread { bot.program = program; bot.addNativePredicate("there are unmapped questions", () -> nempty(unmappedQuestions)); bot.addNativePredicate("find (an unmapped question) x", () -> { if (empty(unmappedQuestions)) false; ret litcimap(x := random(unmappedQuestions)); }); bot.run(); } }