static A elementBefore(Cl l, A a) { A last = null; if (l != null) for (b : l) { if (eq(a, b)) ret last; last = b; } null; }