diff options
Diffstat (limited to 'aoc2021/day-15/day-15.rkt')
-rw-r--r-- | aoc2021/day-15/day-15.rkt | 5 |
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))))) |