static L allPointsInRect(int w, int h) { L l = emptyList(w*h); for y to h: for x to w: l.add(pt(x, y)); ret l; }