Skip to content

Commit 81ca42f

Browse files
committed
Remove the annoying range warning
1 parent e95271f commit 81ca42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/2018/day_06.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ defmodule AdventOfCode.Y2018.Day06 do
4747
defp create_world(points) do
4848
{{xl, xr}, {yt, yb}} = get_corners(points)
4949

50-
for x <- xr..xl, y <- yt..yb do
50+
for x <- xr..xl//-1, y <- yt..yb do
5151
{{x, y},
5252
points
5353
|> Enum.map(fn {xi, yi} ->

0 commit comments

Comments
 (0)