scope philosophyBot1_visitTrailsTree_gen. sbool #debug; svoid philosophyBot1_visitTrailsTree_gen(virtual PhilosophyBot1 engine, IVF1 visitor, O startingPoint) { if (visitor == null || startingPoint == null) ret; if (debug) print("Visiting: " + startingPoint); if (startingPoint cast Iterable) for (O o : startingPoint) philosophyBot1_visitTrailsTree_gen(engine, visitor, o); else if (startingPoint cast Map) for (O o : values(startingPoint)) philosophyBot1_visitTrailsTree_gen(engine, visitor, o); else philosophyBot1_visitTrailsTree_gen(engine, visitor, rcall getTrail(engine, startingPoint)); } end scope