static L rowToList(Matrix m, int y) {
if (m == null) null;
rangeCheck(y, m.getHeight());
int w = m.getWidth();
ret new RandomAccessAbstractList() {
public int size() { ret w; }
public A get(int x) {
ret m.get(x, y);
}
public A set(int x, A val) {
A old = m.get(x, y);
m.set(x, y, val);
ret old;
}
};
}