fix new (or) error in aoc

This commit is contained in:
2022-03-28 19:14:04 -06:00
parent 9d45f79329
commit bde4be60f0

View File

@@ -50,7 +50,7 @@
(function :Map<String,Int> basinAround [:String lowPoint file &opt :Map<String,Int> basinAlready :Map<String,Int> allPoints :Map<String,Int> pointsToCheck]
(set allPoints (or allPoints (pointMap file)))
(set pointsToCheck (or pointsToCheck (pointMap file)))
(set basinAlready (or basinAlready (new Map)))
(set basinAlready (or basinAlready (new Map<String,Int>)))
(dictSet basinAlready lowPoint (dictGet allPoints lowPoint))
(pointsToCheck.remove lowPoint)