Skip to content

Commit

Permalink
Fix compilation until nim-lang/Nim#23200 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dsemi committed Jan 13, 2024
1 parent 8bec1cd commit 30115ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/year2019/day20.nim
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ proc availableMoves(m: ref Maze, pos: Coord): seq[(int, Coord)] =

proc part1*(input: string): int =
let (maze, start, done) = input.parseMaze
for d, st in dijkstra(start, p => maze.availableMoves(p)):
for d, st in dijkstra(start, proc(p: Coord): seq[(int, Coord)] = maze.availableMoves(p)):
if st == done:
return d

Expand Down

0 comments on commit 30115ca

Please sign in to comment.