static int je_indexOfThen(L rule) { for i over rule: { JE_CascadeEntry e = rule.get(i); if (eqic(e.op, "then")) ret i; } ret -1; }