operator []= method

void operator []=(
  1. Pos pos,
  2. E value
)

Sets the element at a position in the grid.

The position must be within the bounds of the grid.

This is an alias for set.

Implementation

void operator []=(Pos pos, E value) => set(pos, value);