operator [] method

E operator [](
  1. Pos pos
)

Returns the element at a position in the grid.

The position must be within the bounds of the grid.

This is an alias for get.

Implementation

E operator [](Pos pos) => get(pos);