I would prefer to have signature like:

```
void eachInRow(int i, Matrix procedure);
```