static L toDoublePts(L l) { ret map toDoublePt(l); } static L toDoublePts(double... coords) { int n = l(coords)/2; L l = emptyList(n); for i to n: l.add(doublePt(coords[i*2], coords[i*2+1])); ret l; }