static L repeatList(int n, Cl l) { if (n <= 0) ret emptyList(); if (n == 1) ret asList(l); L out = emptyList(n*l(l)); repeat n { out.addAll(l); } ret out; }