toUserGrid

inline fun <T> List<List<SudokuCellState>>.toUserGrid(crossinline updateCell: (row: Int, col: Int, SudokuCellState, T) -> T, originalGrid: List<List<T>>): List<List<T>>

Converts the grid of SudokuCellState back to the original grid type.

Return

The updated grid of the original type.

Parameters

updateCell

Lambda function to update a cell in the original grid type.

originalGrid

The original grid to map the updated cells back to.