aboutsummaryrefslogtreecommitdiff
path: root/aoc2021/day-15/day-15.rkt
diff options
context:
space:
mode:
authorJ.J <thechairman@thechairman.info>2023-12-17 20:33:33 -0500
committerJ.J <thechairman@thechairman.info>2023-12-17 20:33:33 -0500
commit7213ca083d121bb9e6876d2ddb4b25ee09d954bb (patch)
treed33e02e185705da07014f41e65550629db477e5d /aoc2021/day-15/day-15.rkt
parent774dede7c2f4a02ed9a588cff08a79e1f8cf3217 (diff)
downloadgleam_aoc-7213ca083d121bb9e6876d2ddb4b25ee09d954bb.tar.gz
gleam_aoc-7213ca083d121bb9e6876d2ddb4b25ee09d954bb.zip
running updated gleam formatter
Diffstat (limited to 'aoc2021/day-15/day-15.rkt')
-rw-r--r--aoc2021/day-15/day-15.rkt5
1 files changed, 3 insertions, 2 deletions
diff --git a/aoc2021/day-15/day-15.rkt b/aoc2021/day-15/day-15.rkt
index 5e61c55..6ab67b1 100644
--- a/aoc2021/day-15/day-15.rkt
+++ b/aoc2021/day-15/day-15.rkt
@@ -1,12 +1,13 @@
#lang racket
-(require "../../jj-aoc.rkt"
+(require advent-of-code
threading
graph)
(struct Point (x y) #:transparent)
(define data
- (for/fold ([cells (hash)]) ([row (in-lines (open-day 15 2021))] [x (in-naturals)])
+ (for/fold ([cells (hash)])
+ ([row (in-lines (open-aoc-input (find-session) 2021 15 #:cache #true))] [x (in-naturals)])
(for/fold ([cells cells]) ([n (in-string row)] [y (in-naturals)])
(hash-set cells (Point x y) (~> n string string->number)))))