static Map consequentsMap(Collection c) { ret consequentsMap(new Map, c); } static Map consequentsMap(Map map, Iterable c) { A last = null; for (A a : unnull(c)) { if (a == null) continue; if (last != null) map.put(last, a); last = a; } ret map; }