static L ai_tripleRefsToTexts(S a, S b, S c, L> l) { if (empty(l)) ret sharedEmptyList(); new L out; for (TripleRef ref : l) if (ref != null) { T3 t = ref.triple; SS match = simpleMatchTriple_dollarVars(a, b, c, t); if (match != null) out.add(match.get("$X")); ifdef ai_tripleRefsToTexts_debug else print("No match: " + t); endifdef } ret out; }