We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e95271f commit 81ca42fCopy full SHA for 81ca42f
lib/2018/day_06.ex
@@ -47,7 +47,7 @@ defmodule AdventOfCode.Y2018.Day06 do
47
defp create_world(points) do
48
{{xl, xr}, {yt, yb}} = get_corners(points)
49
50
- for x <- xr..xl, y <- yt..yb do
+ for x <- xr..xl//-1, y <- yt..yb do
51
{{x, y},
52
points
53
|> Enum.map(fn {xi, yi} ->
0 commit comments