fn indices(nrows: u16, ncols: u16) -> impl Iterator<Item = (u16, u16)>