fun iterate(from: BlockCoordinate, to: BlockCoordinate, callback: (BlockCoordinate) -> Unit): Unit
Used to call a function on rectangle of BlockCoordinates
from
- top-left corner to start from
to
- bottom-right corner to end at
callback
- function that we should call, passing in the current BlockCoordinate