get<T> method

T get<T>(
  1. List<List<T>> grid
)

Gets value from grid.

Implementation

T get<T>(List<List<T>> grid) {
  return grid[x][y];
}