static Map listIndex(L l) { new Map map; for i over l: map.put(l.get(i), i); ret map; }