static WebNode webs_tripleSearch_dollarX_first(S a, S b, S c, Collection webs) { bool isA = eq(a, "$X"); for (Web web : webs) { Pair p = web_matchTriple_dollarVars(a, b, c, web); if (p != null) ret isA ? p.a : p.b; } null; } static WebNode webs_tripleSearch_dollarX_first(Collection webs, T3 t) { ret webs_tripleSearch_dollarX_first(t.a, t.b, t.c, webs); }