static L mapPairsToList(Iterable> l, F2 f) { L x = emptyList(l); if (l != null) for (Pair p : l) x.add(callF(f, p.a, p.b)); ret x; }