static L flattenListOfPairs(L> l) { L out = emptyList(l(l)*2); for (Pair p : unnull(l)) { out.add(p.a); out.add(p.b); } ret out; }