(grid, block_size, index)
| 329 | # - should be of length word_size |
| 330 | # - should be of length equal to number of dimensions in the grid |
| 331 | def eval_index(grid, block_size, index): |
| 332 | offset = 0 |
| 333 | for power, value in enumerate(reversed(index)): |
| 334 | offset += value * block_size ** power |
| 335 | return grid[int(offset)] |
| 336 | |
| 337 | ################################################################################ |
| 338 |
no test coverage detected