def _box(idx, size=3):
        """Return indexes to cover a box (3x3 sub-matrix of a board)."""
        start = (idx // size) * size
        return range(start, start + size)
Return indexes to cover a box (3x3 sub-matrix of a board).
recipes/Python/577188_Sudoku_solver_functionalprogramming/recipe-577188.py