/*static L printNumberedLines(L l) {
printNumberedLines((Collection) l);
ret l;
}
static L printNumberedLines(S prefix, L l) {
printNumberedLines(prefix, (Collection) l);
ret l;
}*/
svoid printNumberedLines(Map map) {
printNumberedLines(mapToLines(map));
}
svoid printNumberedLines(S prefix, Map map) {
printNumberedLines(prefix, mapToLines(map));
}
static A printNumberedLines(A l) {
int i = 0;
if (l != null) for (O a : cloneList(l)) print((++i) + ". " + str(a));
ret l;
}
static A printNumberedLines(S prefix, A l) {
int i = 0;
if (l != null) for (O a : cloneList(l)) print(prefix + (++i) + ". " + str(a));
ret l;
}
static void printNumberedLines(S prefix default "", O[] l) {
printNumberedLines(prefix, wrapAsList(l));
}
static void printNumberedLines(O o) {
printNumberedLines(lines(str(o)));
}