static bool matchWordSequence(WordSequence pat, WordSequence real, IMatchF matchF, Map map) { int n = l(pat.l); if (n != l(real.l)) false; for i to n: if (!matchF.get(pat.l.get(i), real.l.get(i), map)) false; true; }