index method

int index (int row, int col)

Return index in storage for row, col value.

Implementation

int index(int row, int col) => (col * 2) + row;