customIsAlive method

bool customIsAlive(
  1. int f(
    1. int,
    2. int
    ),
  2. int i,
  3. int j
)

Is the cell at the mapped {i,j} location alive right now?

Implementation

bool customIsAlive(int Function(int, int) f, int i, int j) => _cells[f(i, j)];