padRight method

GridWorld padRight(
  1. int n
)

Copy this, adding padding on right.

Implementation

GridWorld padRight(int n) =>
    GridWorld.empty(_numRows, _numCols + n).._paste(0, 0, this);