static A ai_first(Collection l) { if (empty(l)) null; Iterator it = l.iterator(); A a = it.next(); if (it.hasNext()) warn("Choosing first element of multiple"); ret a; }